Constify the fstype argument to vfs_mount(). This eliminates at least one

"call discards qualifier" warning (in sys/compat/linux/linux_file.c).
This commit is contained in:
des 2001-07-09 19:11:51 +00:00
parent ae4b584f46
commit 0d5e1121ea
3 changed files with 4 additions and 4 deletions

View File

@ -151,7 +151,7 @@ mount(p, uap)
int
vfs_mount(p, fstype, fspath, fsflags, fsdata)
struct proc *p;
char *fstype;
const char *fstype;
char *fspath;
int fsflags;
void *fsdata;

View File

@ -151,7 +151,7 @@ mount(p, uap)
int
vfs_mount(p, fstype, fspath, fsflags, fsdata)
struct proc *p;
char *fstype;
const char *fstype;
char *fspath;
int fsflags;
void *fsdata;

View File

@ -395,8 +395,8 @@ extern char *mountrootfsname;
* exported vnode operations
*/
int dounmount __P((struct mount *, int, struct proc *));
int vfs_mount __P((struct proc *p, char *type, char *path, int flags,
void *data));
int vfs_mount __P((struct proc *p, const char *type, char *path,
int flags, void *data));
int vfs_setpublicfs /* set publicly exported fs */
__P((struct mount *, struct netexport *, struct export_args *));
int vfs_lock __P((struct mount *)); /* lock a vfs */