summaryrefslogtreecommitdiff
path: root/usr.bin/showmount
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-11 11:09:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-11 11:09:57 +0000
commite4221d9c7aa6d676495f03f43fb963d42d96e945 (patch)
tree78169d2edf1d9236a7aa8b4013d8319c28157805 /usr.bin/showmount
parentdbba8ae1e2ddb9a59c996bde3ece66ce97ceba85 (diff)
extra semi; uninit var
Diffstat (limited to 'usr.bin/showmount')
-rw-r--r--usr.bin/showmount/showmount.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/showmount/showmount.c b/usr.bin/showmount/showmount.c
index fdaa1e4c52b..fa579faa893 100644
--- a/usr.bin/showmount/showmount.c
+++ b/usr.bin/showmount/showmount.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: showmount.c,v 1.6 1997/02/11 18:10:57 deraadt Exp $ */
+/* $OpenBSD: showmount.c,v 1.7 1997/09/11 11:09:56 deraadt Exp $ */
/* $NetBSD: showmount.c,v 1.7 1996/05/01 18:14:10 cgd Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)showmount.c 8.3 (Berkeley) 3/29/95";
#endif
-static char rcsid[] = "$OpenBSD: showmount.c,v 1.6 1997/02/11 18:10:57 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: showmount.c,v 1.7 1997/09/11 11:09:56 deraadt Exp $";
#endif not lint
#include <sys/types.h>
@@ -248,7 +248,7 @@ xdr_mntdump(xdrsp, mlp)
XDR *xdrsp;
struct mountlist **mlp;
{
- struct mountlist *mp, **otp, *tp;
+ struct mountlist *mp, **otp = NULL, *tp;
int bool, val, val2;
char *strp;
@@ -301,7 +301,7 @@ xdr_mntdump(xdrsp, mlp)
goto next;
}
break;
- };
+ }
if (val < 0) {
otp = &tp->ml_left;
tp = tp->ml_left;