patch-2.3.41 linux/fs/devices.c

Next file: linux/fs/dquot.c
Previous file: linux/fs/dcache.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/fs/devices.c linux/fs/devices.c
@@ -168,14 +168,14 @@
  * Print device name (in decimal, hexadecimal or symbolic)
  * Note: returns pointer to static data!
-char * kdevname(kdev_t dev)
+const char * kdevname(kdev_t dev)
 	static char buffer[32];
 	sprintf(buffer, "%02x:%02x", MAJOR(dev), MINOR(dev));
 	return buffer;
-char * cdevname(kdev_t dev)
+const char * cdevname(kdev_t dev)
 	static char buffer[32];
 	const char * name = chrdevs[MAJOR(dev)].name;

TCL-scripts by Sam Shen (who was at: