summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2001-07-15 03:10:54 +0000
committergad <gad@FreeBSD.org>2001-07-15 03:10:54 +0000
commitb28eadc43332d8a3f6699840db362d56f75d63c1 (patch)
tree5ce718e4c5d55e0481a07617153346ab04278fd4
parentedd603bf24708ed62efd736af5606043ffccc9d5 (diff)
downloadFreeBSD-src-b28eadc43332d8a3f6699840db362d56f75d63c1.zip
FreeBSD-src-b28eadc43332d8a3f6699840db362d56f75d63c1.tar.gz
Get rid of one compile-time warning by changing an 'int' to a 'size_t'.
MFC after: 1 week
-rw-r--r--usr.sbin/lpr/lpc/lpc.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c
index d01c935..1f6d39a 100644
--- a/usr.sbin/lpr/lpc/lpc.c
+++ b/usr.sbin/lpr/lpc/lpc.c
@@ -148,12 +148,16 @@ static void
cmdscanner(void)
{
register struct cmd *c;
- static EditLine *el = NULL;
- static History *hist = NULL;
- int num = 0;
- int len;
- const char *bp = NULL;
-
+ static EditLine *el;
+ static History *hist;
+ size_t len;
+ int num;
+ const char *bp;
+
+ num = 0;
+ bp = NULL;
+ el = NULL;
+ hist = NULL;
for (;;) {
if (fromatty) {
if (!el) {
OpenPOWER on IntegriCloud