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
-  Lines: 17
-  Date:
Mon Jan 24 11:04:37 2000
-  Orig file: 
v2.3.40/linux/fs/devices.c
-  Orig date: 
Thu Jan  6 12:57:48 2000
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;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)