summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 19:46:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 19:46:54 +0000
commit9b53e9ca8640f563833e342f07ff3f93b7547231 (patch)
treee11e35259d32805d4ed381b70e61d082e212608e /usr.sbin/lpr
parent5efcea53a88b922145cd2461d78968fcf420274e (diff)
use more socklen_t; pvalchev
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lpd/lpd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c
index bc66f6dc2e3..7a4da2e2b46 100644
--- a/usr.sbin/lpr/lpd/lpd.c
+++ b/usr.sbin/lpr/lpd/lpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpd.c,v 1.37 2002/06/23 03:07:19 deraadt Exp $ */
+/* $OpenBSD: lpd.c,v 1.38 2002/09/06 19:46:52 deraadt Exp $ */
/* $NetBSD: lpd.c,v 1.33 2002/01/21 14:42:29 wiz Exp $ */
/*
@@ -45,7 +45,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)lpd.c 8.7 (Berkeley) 5/10/95";
#else
-static const char rcsid[] = "$OpenBSD: lpd.c,v 1.37 2002/06/23 03:07:19 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: lpd.c,v 1.38 2002/09/06 19:46:52 deraadt Exp $";
#endif
#endif /* not lint */
@@ -344,7 +344,8 @@ main(int argc, char **argv)
memset(&frominet, 0, sizeof(frominet));
memset(&fromunix, 0, sizeof(fromunix));
for (;;) {
- int domain, nfds, s, fromlen;
+ int domain, nfds, s;
+ socklen_t fromlen;
fd_set readfds;
short sleeptime = 10; /* overflows in about 2 hours */