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:
parent
ae4b584f46
commit
0d5e1121ea
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user