From cda5daf84c2aedbd0018b010a4267ec86058f167 Mon Sep 17 00:00:00 2001 From: Garance A Drosehn Date: Sun, 15 Jul 2001 03:10:54 +0000 Subject: [PATCH] Get rid of one compile-time warning by changing an 'int' to a 'size_t'. MFC after: 1 week --- usr.sbin/lpr/lpc/lpc.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c index d01c935d2aa..1f6d39a2f40 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) {