summaryrefslogtreecommitdiffstats
path: root/sbin/umount
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-10-08 19:56:45 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-10-08 19:56:45 +0000
commitbbafe9908d455132a2083a067f28bd7ff7e4166b (patch)
tree82eee8f0821bc2e0702aab1118285bbab4976100 /sbin/umount
parentfd59e37cb40478cfb98d3de4e65bd94340178dd5 (diff)
downloadFreeBSD-src-bbafe9908d455132a2083a067f28bd7ff7e4166b.zip
FreeBSD-src-bbafe9908d455132a2083a067f28bd7ff7e4166b.tar.gz
Fix -Wall warnings
Submitted-By: Martin Blapp <mblapp@kassiopeja.lan.attic.ch>
Diffstat (limited to 'sbin/umount')
-rw-r--r--sbin/umount/umount.c5
1 files changed, 3 insertions, 2 deletions
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... */
OpenPOWER on IntegriCloud