From a33973d41a7692bac47ab675061e000d9fa963b3 Mon Sep 17 00:00:00 2001 From: Garance A Drosehn Date: Mon, 23 Jul 2001 01:13:20 +0000 Subject: [PATCH] Get rid of a compile-time warning by casting to (size_t). MFC after: 1 week --- usr.sbin/lpr/lpc/lpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c index 1f6d39a2f409..d5a1160fc94c 100644 --- a/usr.sbin/lpr/lpc/lpc.c +++ b/usr.sbin/lpr/lpc/lpc.c @@ -258,7 +258,7 @@ makeargv(void) register int n = 0; margc = 0; - for (cp = cmdline; *cp && (cp - cmdline) < sizeof(cmdline) && + for (cp = cmdline; *cp && (size_t)(cp - cmdline) < sizeof(cmdline) && n < MAX_MARGV; n++) { while (isspace(*cp)) cp++;