diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-10 22:20:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-10 22:20:55 +0000 |
commit | b8aaa8bec8414f8e55cf9b61fe0873d242c773b8 (patch) | |
tree | 5e43016c4fae834239fd38972fd58355ed6b54b5 /usr.bin/logger | |
parent | f18f6607440f6d2da08fac3522d88a65c77a5f3e (diff) |
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/logger')
-rw-r--r-- | usr.bin/logger/logger.c | 17 |
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"); |