From 0d5e1121ead91297784ba5f76e2221f05d4524e1 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 9 Jul 2001 19:11:51 +0000 Subject: [PATCH] Constify the fstype argument to vfs_mount(). This eliminates at least one "call discards qualifier" warning (in sys/compat/linux/linux_file.c). --- sys/kern/vfs_extattr.c | 2 +- sys/kern/vfs_syscalls.c | 2 +- sys/sys/mount.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index c35a73d2b482..35f9576c42ec 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -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; diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index c35a73d2b482..35f9576c42ec 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -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; diff --git a/sys/sys/mount.h b/sys/sys/mount.h index 28d0938a1d93..d35a204fb3c6 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -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 */