summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2001-07-23 01:13:20 +0000
committergad <gad@FreeBSD.org>2001-07-23 01:13:20 +0000
commit3e14c9da6385e73cd5c24908aa21de55dedfb766 (patch)
tree65ab867af25d1fe049a205d33fd6423dd2f71657
parent8d5df5b9d832c97c743b354ea455bb572cbae130 (diff)
downloadFreeBSD-src-3e14c9da6385e73cd5c24908aa21de55dedfb766.zip
FreeBSD-src-3e14c9da6385e73cd5c24908aa21de55dedfb766.tar.gz
Get rid of a compile-time warning by casting to (size_t).
MFC after: 1 week
-rw-r--r--usr.sbin/lpr/lpc/lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c
index 1f6d39a..d5a1160 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++;
OpenPOWER on IntegriCloud