summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-01-06 08:33:38 +0000
committerimp <imp@FreeBSD.org>1999-01-06 08:33:38 +0000
commit0d8d1147d65f4a98eacc76065bf360daa55e1db3 (patch)
tree6866d778d7777535ccd898306d2ae679630fc746 /usr.sbin
parent64f85516ac74006dd43e3c212ef0c363671d3adb (diff)
downloadFreeBSD-src-0d8d1147d65f4a98eacc76065bf360daa55e1db3.zip
FreeBSD-src-0d8d1147d65f4a98eacc76065bf360daa55e1db3.tar.gz
Change my mind on using base '0' for strtol for -i and -# operations
as this would change the meaning of -#050 in preexisting scripts.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lpr/lpr/lpr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c
index b36e40d..56a364d 100644
--- a/usr.sbin/lpr/lpr/lpr.c
+++ b/usr.sbin/lpr/lpr/lpr.c
@@ -48,7 +48,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)from: lpr.c 8.4 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
- "$Id: lpr.c,v 1.25 1998/09/11 18:49:33 wollman Exp $";
+ "$Id: lpr.c,v 1.26 1999/01/06 08:25:56 imp Exp $";
#endif /* not lint */
/*
@@ -154,7 +154,7 @@ main(argc, argv)
":#:1:2:3:4:C:J:P:T:U:cdfghi:lnmprstvw:")) != -1)
switch (c) {
case '#': /* n copies */
- i = strtol(optarg, &p, 0);
+ i = strtol(optarg, &p, 10);
if (*p)
errx(1, "Bad argument to -#, number expected");
if (i > 0)
@@ -212,7 +212,7 @@ main(argc, argv)
case 'i': /* indent output */
iflag++;
- indent = strtol(optarg, &p, 0);
+ indent = strtol(optarg, &p, 10);
if (*p)
errx(1, "Bad argument to -i, number expected");
break;
OpenPOWER on IntegriCloud