summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-12-06 17:55:07 +0000
committerjdp <jdp@FreeBSD.org>1997-12-06 17:55:07 +0000
commit5ec301cdc6789cc7aaa50f21a05a033d21def072 (patch)
tree324120623af4462dccaaac595c91cf7cec19945f
parent48a1f82a2e097d7db7c9f656f547c8a8bc1f90eb (diff)
downloadFreeBSD-src-5ec301cdc6789cc7aaa50f21a05a033d21def072.zip
FreeBSD-src-5ec301cdc6789cc7aaa50f21a05a033d21def072.tar.gz
Fix incorrect format string in call to errx().
-rw-r--r--usr.sbin/lpr/lpr/lpr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c
index 41cfa97..a471f6c 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.21 1997/09/24 06:48:07 charnier Exp $";
+ "$Id: lpr.c,v 1.22 1997/12/02 20:46:10 wollman Exp $";
#endif /* not lint */
/*
@@ -254,7 +254,7 @@ main(argc, argv)
if (pp->no_copies && ncopies > 1)
errx(1, "multiple copies are not allowed");
if (pp->max_copies > 0 && ncopies > pp->max_copies)
- errx(1, "only %d copies are allowed", pp->max_copies);
+ errx(1, "only %ld copies are allowed", pp->max_copies);
/*
* Get the identity of the person doing the lpr using the same
* algorithm as lprm. Actually, not quite -- lprm will override
OpenPOWER on IntegriCloud