diff options
author | gad <gad@FreeBSD.org> | 2001-07-23 01:13:20 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2001-07-23 01:13:20 +0000 |
commit | 3e14c9da6385e73cd5c24908aa21de55dedfb766 (patch) | |
tree | 65ab867af25d1fe049a205d33fd6423dd2f71657 /usr.sbin/lpr | |
parent | 8d5df5b9d832c97c743b354ea455bb572cbae130 (diff) | |
download | FreeBSD-src-3e14c9da6385e73cd5c24908aa21de55dedfb766.zip FreeBSD-src-3e14c9da6385e73cd5c24908aa21de55dedfb766.tar.gz |
Get rid of a compile-time warning by casting to (size_t).
MFC after: 1 week
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r-- | usr.sbin/lpr/lpc/lpc.c | 2 |
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++; |