summaryrefslogtreecommitdiff
path: root/usr.bin/logger/logger.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 22:20:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 22:20:55 +0000
commitb8aaa8bec8414f8e55cf9b61fe0873d242c773b8 (patch)
tree5e43016c4fae834239fd38972fd58355ed6b54b5 /usr.bin/logger/logger.c
parentf18f6607440f6d2da08fac3522d88a65c77a5f3e (diff)
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/logger/logger.c')
-rw-r--r--usr.bin/logger/logger.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c
index 50556eb3245..06de62207e4 100644
--- a/usr.bin/logger/logger.c
+++ b/usr.bin/logger/logger.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logger.c,v 1.6 2003/06/03 02:56:10 millert Exp $ */
+/* $OpenBSD: logger.c,v 1.7 2003/06/10 22:20:47 deraadt Exp $ */
/* $NetBSD: logger.c,v 1.4 1994/12/22 06:27:00 jtc Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)logger.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: logger.c,v 1.6 2003/06/03 02:56:10 millert Exp $";
+static char rcsid[] = "$OpenBSD: logger.c,v 1.7 2003/06/10 22:20:47 deraadt Exp $";
#endif /* not lint */
#include <errno.h>
@@ -64,9 +64,7 @@ void usage(void);
* log.
*/
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int ch, logflags, pri;
char *tag, buf[1024];
@@ -138,8 +136,7 @@ main(argc, argv)
* Decode a symbolic name to a numeric value
*/
int
-pencode(s)
- char *s;
+pencode(char *s)
{
char *save;
int fac, lev;
@@ -169,9 +166,7 @@ pencode(s)
}
int
-decode(name, codetab)
- char *name;
- CODE *codetab;
+decode(char *name, CODE *codetab)
{
CODE *c;
@@ -186,7 +181,7 @@ decode(name, codetab)
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr,
"logger: [-is] [-f file] [-p pri] [-t tag] [ message ... ]\n");