aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_unionfs
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2007-02-13 05:39:38 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2007-02-13 05:39:38 +0000
commit8cb8959b118ee99d09e47eb6350c92bfe8bbab15 (patch)
tree970bb02e1bf5ededc086119206941814293ccdb8 /sbin/mount_unionfs
parent5cb6b1effbdd634b40df6b7810a936a50aa19c33 (diff)
downloadsrc-8cb8959b118ee99d09e47eb6350c92bfe8bbab15.tar.gz
src-8cb8959b118ee99d09e47eb6350c92bfe8bbab15.zip
Raise WARNS level to 6.
Notes
Notes: svn path=/head/; revision=166684
Diffstat (limited to 'sbin/mount_unionfs')
-rw-r--r--sbin/mount_unionfs/Makefile2
-rw-r--r--sbin/mount_unionfs/mount_unionfs.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/sbin/mount_unionfs/Makefile b/sbin/mount_unionfs/Makefile
index 4794deaabe1e..35158ab92378 100644
--- a/sbin/mount_unionfs/Makefile
+++ b/sbin/mount_unionfs/Makefile
@@ -7,7 +7,7 @@ MAN= mount_unionfs.8
MOUNT= ${.CURDIR}/../mount
CFLAGS+=-I${MOUNT}
-WARNS?= 3
+WARNS?= 6
.PATH: ${MOUNT}
diff --git a/sbin/mount_unionfs/mount_unionfs.c b/sbin/mount_unionfs/mount_unionfs.c
index d6799f404a64..edb0fff07596 100644
--- a/sbin/mount_unionfs/mount_unionfs.c
+++ b/sbin/mount_unionfs/mount_unionfs.c
@@ -132,6 +132,7 @@ main(int argc, char *argv[])
int ch, mntflags, iovlen;
char source [MAXPATHLEN], target[MAXPATHLEN], errmsg[255];
char uid_str[20], gid_str[20];
+ char fstype[] = "unionfs";
char *p, *val;
iov = NULL;
@@ -182,7 +183,7 @@ main(int argc, char *argv[])
errx(EX_USAGE, "%s (%s) and %s (%s) are not distinct paths",
argv[0], target, argv[1], source);
- build_iovec(&iov, &iovlen, "fstype", "unionfs", (size_t)-1);
+ build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1);
build_iovec(&iov, &iovlen, "fspath", source, (size_t)-1);
build_iovec(&iov, &iovlen, "from", target, (size_t)-1);
build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));