From 6a60d5bc317c39e71c7b171721933cfed902e46e Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sat, 10 Apr 2010 09:06:08 +0200 Subject: [PATCH] mount_nwfs(8): Raise WARNS to 6. --- sbin/mount_nwfs/Makefile | 1 - sbin/mount_nwfs/mount_nwfs.c | 10 ++++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sbin/mount_nwfs/Makefile b/sbin/mount_nwfs/Makefile index 220f96a76a..21374d6e4c 100644 --- a/sbin/mount_nwfs/Makefile +++ b/sbin/mount_nwfs/Makefile @@ -4,7 +4,6 @@ PROG= mount_nwfs SRCS= mount_nwfs.c getmntopts.c MAN= mount_nwfs.8 -WARNS?= 2 MOUNT= ${.CURDIR}/../mount CFLAGS+= -DNWFS -I${MOUNT} diff --git a/sbin/mount_nwfs/mount_nwfs.c b/sbin/mount_nwfs/mount_nwfs.c index 4627318a30..ef7bf7e18c 100644 --- a/sbin/mount_nwfs/mount_nwfs.c +++ b/sbin/mount_nwfs/mount_nwfs.c @@ -63,11 +63,13 @@ static int parsercfile(struct ncp_conn_loginfo *li, struct nwfs_args *mdata); static struct mntopt mopts[] = { MOPT_STDOPTS, - { NULL } + { NULL , 0, 0, 0 } }; static int -parsercfile(struct ncp_conn_loginfo *li, struct nwfs_args *mdata) { +parsercfile(struct ncp_conn_loginfo *li __unused, + struct nwfs_args *mdata __unused) +{ return 0; } @@ -295,10 +297,10 @@ main(int argc, char *argv[]) { if (ncp_geteinfo(mount_point, &einfo) == 0) errx(EX_OSERR, "can't mount on %s twice", mount_point); - if (mdata.uid == -1) { + if (mdata.uid == (uid_t)-1) { mdata.uid = st.st_uid; } - if (mdata.gid == -1) { + if (mdata.gid == (gid_t)-1) { mdata.gid = st.st_gid; } if (mdata.file_mode == 0 ) { -- 2.41.0