summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/lptest/lptest.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-05-20 23:13:51 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-05-20 23:13:51 +0000
commitb2a7fd194eceff2b87de78d7cec611dbe9852f58 (patch)
tree964c1ee0a29425901306badd36cf127d4a351291 /usr.sbin/lpr/lptest/lptest.c
parent1c6d6f81973745cbc85a424ec5f1931f07e8ebf7 (diff)
Pull in useful bits from NetBSD and make our lp* easier to diff and
do some minor cleanup of my own: o IPv6 support o ANSI function headers o use getopt() o synce usage() with man pages o passes -Wall on both 32bit and 64bit platforms o add an option to set the max number of children lpd will fork off o add an lpd option to bind to specific addresses instead of INADDR_ANY. o allow user to specify how long to wait for a connection to remote servers o more strlcpy() and snprintf() usage o Use FOO_FILENO constants instead of hard-coding 0-2 o Add some keeps to man the page SYNOPSIS to avoid options being split
Diffstat (limited to 'usr.sbin/lpr/lptest/lptest.c')
-rw-r--r--usr.sbin/lpr/lptest/lptest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/lpr/lptest/lptest.c b/usr.sbin/lpr/lptest/lptest.c
index 5ac3477c0f6..d8806c9d984 100644
--- a/usr.sbin/lpr/lptest/lptest.c
+++ b/usr.sbin/lpr/lptest/lptest.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: lptest.c,v 1.4 2001/08/30 17:38:13 millert Exp $ */
-/* $NetBSD: lptest.c,v 1.5 1996/03/21 18:13:20 jtc Exp $ */
+/* $OpenBSD: lptest.c,v 1.5 2002/05/20 23:13:50 millert Exp $ */
+/* $NetBSD: lptest.c,v 1.6 1996/12/09 09:57:50 mrg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -45,7 +45,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)lptest.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: lptest.c,v 1.4 2001/08/30 17:38:13 millert Exp $";
+static const char rcsid[] = "$OpenBSD: lptest.c,v 1.5 2002/05/20 23:13:50 millert Exp $";
#endif
#endif /* not lint */
@@ -85,6 +85,6 @@ main(argc, argv)
}
putchar('\n');
}
- (void) fflush(stdout);
+ (void)fflush(stdout);
exit(0);
}