patch-1.3.15 linux/fs/super.c

Next file: linux/fs/sysv/file.c
Previous file: linux/fs/smbfs/proc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.14/linux/fs/super.c linux/fs/super.c
@@ -168,7 +168,7 @@
 	return len;
 }
 
-struct file_system_type *get_fs_type(char *name)
+struct file_system_type *get_fs_type(const char *name)
 {
 	struct file_system_type * fs = file_systems;
 	
@@ -254,7 +254,7 @@
 		sb->s_op->put_super(sb);
 }
 
-static struct super_block * read_super(dev_t dev,char *name,int flags,
+static struct super_block * read_super(dev_t dev,const char *name,int flags,
 				       void *data, int silent)
 {
 	struct super_block * s;
@@ -428,7 +428,7 @@
  * We also have to flush all inode-data for this device, as the new mount
  * might need new info.
  */
-static int do_mount(dev_t dev, const char * dir, char * type, int flags, void * data)
+static int do_mount(dev_t dev, const char * dir, const char * type, int flags, void * data)
 {
 	struct inode * dir_i;
 	struct super_block * sb;
@@ -554,7 +554,7 @@
 	struct file_operations * fops;
 	dev_t dev;
 	int retval;
-	char * t;
+	const char * t;
 	unsigned long flags = 0;
 	unsigned long page = 0;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this