summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-19 01:24:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-19 01:24:15 +0000
commitf9c940c91232305258bbf7ce0971bb335764655d (patch)
tree4396789142c6e5802f53c7d4a886ccf424e89c66 /usr.sbin
parent6fd2d26e954fe36fd50323d30c6d1cdc093ef9d9 (diff)
stretch some ugly while();
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lpr/lpc/lpc.c5
-rw-r--r--usr.sbin/lpr/lpd/recvjob.c7
-rw-r--r--usr.sbin/lpr/lpr/lpr.c7
3 files changed, 11 insertions, 8 deletions
diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c
index bbd41c4833c..f5a634f245e 100644
--- a/usr.sbin/lpr/lpc/lpc.c
+++ b/usr.sbin/lpr/lpc/lpc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpc.c,v 1.14 2002/06/08 01:53:43 millert Exp $ */
+/* $OpenBSD: lpc.c,v 1.15 2002/06/19 01:24:14 deraadt Exp $ */
/* $NetBSD: lpc.c,v 1.11 2001/11/14 03:01:15 enami Exp $ */
/*
@@ -45,7 +45,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)lpc.c 8.3 (Berkeley) 4/28/95";
#else
-static const char rcsid[] = "$OpenBSD: lpc.c,v 1.14 2002/06/08 01:53:43 millert Exp $";
+static const char rcsid[] = "$OpenBSD: lpc.c,v 1.15 2002/06/19 01:24:14 deraadt Exp $";
#endif
#endif /* not lint */
@@ -285,6 +285,7 @@ help(int argc, char **argv)
}
while (--argc > 0) {
char *arg;
+
arg = *++argv;
c = getcmd(arg);
if (c == (struct cmd *)-1)
diff --git a/usr.sbin/lpr/lpd/recvjob.c b/usr.sbin/lpr/lpd/recvjob.c
index 4962d4175ec..fb16b4e0ffe 100644
--- a/usr.sbin/lpr/lpd/recvjob.c
+++ b/usr.sbin/lpr/lpd/recvjob.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: recvjob.c,v 1.21 2002/06/08 01:53:43 millert Exp $ */
+/* $OpenBSD: recvjob.c,v 1.22 2002/06/19 01:24:14 deraadt Exp $ */
/* $NetBSD: recvjob.c,v 1.14 2001/12/04 22:52:44 christos Exp $ */
/*
@@ -45,7 +45,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)recvjob.c 8.2 (Berkeley) 4/27/95";
#else
-static const char rcsid[] = "$OpenBSD: recvjob.c,v 1.21 2002/06/08 01:53:43 millert Exp $";
+static const char rcsid[] = "$OpenBSD: recvjob.c,v 1.22 2002/06/19 01:24:14 deraadt Exp $";
#endif
#endif /* not lint */
@@ -345,7 +345,8 @@ rcleanup(int signo)
do {
do
(void)unlink(dfname);
- while (dfname[2]-- != 'A');
+ while (dfname[2]-- != 'A')
+ ;
dfname[2] = 'z';
} while (dfname[0]-- != 'd');
}
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c
index 5bf36bbcdb3..db333a36191 100644
--- a/usr.sbin/lpr/lpr/lpr.c
+++ b/usr.sbin/lpr/lpr/lpr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpr.c,v 1.27 2002/06/09 03:56:29 millert Exp $ */
+/* $OpenBSD: lpr.c,v 1.28 2002/06/19 01:24:14 deraadt Exp $ */
/* $NetBSD: lpr.c,v 1.19 2000/10/11 20:23:52 is Exp $ */
/*
@@ -50,7 +50,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)lpr.c 8.4 (Berkeley) 4/28/95";
#else
-static const char rcsid[] = "$OpenBSD: lpr.c,v 1.27 2002/06/09 03:56:29 millert Exp $";
+static const char rcsid[] = "$OpenBSD: lpr.c,v 1.28 2002/06/19 01:24:14 deraadt Exp $";
#endif
#endif /* not lint */
@@ -637,7 +637,8 @@ itoa(int i)
p = &b[8];
do
*p-- = i%10 + '0';
- while (i /= 10);
+ while (i /= 10)
+ ;
return(++p);
}