Subject: should readdisklabel be changed to return 'const char *'?
To: None <tech-kern@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 05/01/2003 17:48:48
The prototype of readdisklabel() is currently:
(in sys/disklabel.h)

char *readdisklabel(dev_t, void (*)(struct buf *),
            struct disklabel *, struct cpu_disklabel *);

However since almost all the returned strings are literals
it should really be:

const char *readdisklabel(dev_t, void (*)(struct buf *),
            struct disklabel *, struct cpu_disklabel *);

Any objections to me committing this?
(yes, it affects a whole shedload of files..)

	David

-- 
David Laight: david@l8s.co.uk