summaryrefslogtreecommitdiff
path: root/usr.bin/rdistd
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-11-26 21:32:39 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-11-26 21:32:39 +0000
commitc3b0c6807cc3f470af585a5f9a36a57fbff32cb1 (patch)
tree8306b95322c97dbac05667722ce05c31ffa6f4d0 /usr.bin/rdistd
parent99019139c370c0aedb77b02d2d900970e4f2ffc5 (diff)
Make two variables that ought not to be static be auto.
Remove a useless loop invariant (already tested before the loop is reached).
Diffstat (limited to 'usr.bin/rdistd')
-rw-r--r--usr.bin/rdistd/filesys.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/rdistd/filesys.c b/usr.bin/rdistd/filesys.c
index d941009e673..49571c0e5d1 100644
--- a/usr.bin/rdistd/filesys.c
+++ b/usr.bin/rdistd/filesys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: filesys.c,v 1.5 1998/06/26 21:20:48 millert Exp $ */
+/* $OpenBSD: filesys.c,v 1.6 1999/11/26 21:32:38 millert Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -39,7 +39,7 @@ static char RCSid[] =
"$From: filesys.c,v 6.24 1996/01/30 01:57:07 mcooper Exp $";
#else
static char RCSid[] =
-"$OpenBSD: filesys.c,v 1.5 1998/06/26 21:20:48 millert Exp $";
+"$OpenBSD: filesys.c,v 1.6 1999/11/26 21:32:38 millert Exp $";
#endif
static char sccsid[] = "@(#)filesys.c";
@@ -231,7 +231,8 @@ struct mntinfo *makemntinfo(mi)
struct mntinfo *mi;
{
FILE *mfp;
- static struct mntinfo *mntinfo, *newmi, *m;
+ static struct mntinfo *mntinfo;
+ struct mntinfo *newmi, *m;
struct stat mntstat;
mntent_t *mnt;
int timeo = 310;
@@ -283,7 +284,7 @@ struct mntinfo *makemntinfo(mi)
* Add entry to list
*/
if (mntinfo) {
- for (m = mntinfo; m && m->mi_nxt; m = m->mi_nxt);
+ for (m = mntinfo; m->mi_nxt; m = m->mi_nxt);
m->mi_nxt = newmi;
} else
mntinfo = newmi;