From ae0c2c78369cd591a1d302611a2f8287c7de98bd Mon Sep 17 00:00:00 2001 From: Nick Hibma Date: Fri, 8 Oct 1999 19:56:45 +0000 Subject: [PATCH] Fix -Wall warnings Submitted-By: Martin Blapp --- sbin/mount_nfs/mount_nfs.c | 2 +- sbin/umount/umount.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index c0f074d41206..7e04cd62f312 100644 --- a/sbin/mount_nfs/mount_nfs.c +++ b/sbin/mount_nfs/mount_nfs.c @@ -657,7 +657,7 @@ getnfsargs(spec, nfsargsp) #ifdef NFSKERB char *cp; #endif - u_short tport; + u_short tport = 0; static struct nfhret nfhret; static char nam[MNAMELEN + 1]; diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c index f832848d18a4..9c34d8bba03f 100644 --- a/sbin/umount/umount.c +++ b/sbin/umount/umount.c @@ -80,7 +80,7 @@ main(argc, argv) int argc; char *argv[]; { - int all, ch, errs, mnts; + int all, ch, errs = 0, mnts; char **typelist = NULL; struct statfs *mntbuf; @@ -211,7 +211,8 @@ umountfs(name, typelist) struct timeval pertry, try; CLIENT *clp; int so; - char *type, *delimp, *hostp, *mntpt, *origname, rname[MAXPATHLEN]; + char *type, *delimp = NULL, *hostp, *mntpt, *origname; + char rname[MAXPATHLEN]; if (realpath(name, rname) == NULL) { /* Continue and let the system call check it... */