diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-10-08 19:56:45 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-10-08 19:56:45 +0000 |
commit | bbafe9908d455132a2083a067f28bd7ff7e4166b (patch) | |
tree | 82eee8f0821bc2e0702aab1118285bbab4976100 /sbin | |
parent | fd59e37cb40478cfb98d3de4e65bd94340178dd5 (diff) | |
download | FreeBSD-src-bbafe9908d455132a2083a067f28bd7ff7e4166b.zip FreeBSD-src-bbafe9908d455132a2083a067f28bd7ff7e4166b.tar.gz |
Fix -Wall warnings
Submitted-By: Martin Blapp <mblapp@kassiopeja.lan.attic.ch>
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount_nfs/mount_nfs.c | 2 | ||||
-rw-r--r-- | 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 c0f074d..7e04cd6 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 f832848..9c34d8b 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... */ |