summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2001-10-09 00:34:20 +0000
committergad <gad@FreeBSD.org>2001-10-09 00:34:20 +0000
commitcfae1b56b88910ee5022ebc232322a8bd149b585 (patch)
tree7ac40db9581a6583922d571d19d4302f75eeafa3 /usr.sbin
parent051313964503ef90c6e63520f4ec896bd623d9e3 (diff)
downloadFreeBSD-src-cfae1b56b88910ee5022ebc232322a8bd149b585.zip
FreeBSD-src-cfae1b56b88910ee5022ebc232322a8bd149b585.tar.gz
Fix a compile-time warning by declaring 'len' as size_t instead of int.
MFC after: 4 days
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lpr/lpr/lpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c
index 23b3b8c..9b7fc16 100644
--- a/usr.sbin/lpr/lpr/lpr.c
+++ b/usr.sbin/lpr/lpr/lpr.c
@@ -614,7 +614,7 @@ card(int c, const char *p2)
{
char buf[BUFSIZ];
register char *p1 = buf;
- register int len = 2;
+ size_t len = 2;
*p1++ = c;
while ((c = *p2++) != '\0' && len < sizeof(buf)) {
OpenPOWER on IntegriCloud