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/tail | |
parent | f18f6607440f6d2da08fac3522d88a65c77a5f3e (diff) |
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/tail')
-rw-r--r-- | usr.bin/tail/misc.c | 8 | ||||
-rw-r--r-- | usr.bin/tail/tail.c | 13 |
2 files changed, 9 insertions, 12 deletions
diff --git a/usr.bin/tail/misc.c b/usr.bin/tail/misc.c index 0650d590cb8..fd9849a5e03 100644 --- a/usr.bin/tail/misc.c +++ b/usr.bin/tail/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.5 2003/06/03 02:56:17 millert Exp $ */ +/* $OpenBSD: misc.c,v 1.6 2003/06/10 22:20:52 deraadt Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -36,7 +36,7 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: misc.c,v 1.5 2003/06/03 02:56:17 millert Exp $"; +static char rcsid[] = "$OpenBSD: misc.c,v 1.6 2003/06/10 22:20:52 deraadt Exp $"; #endif #endif /* not lint */ @@ -51,7 +51,7 @@ static char rcsid[] = "$OpenBSD: misc.c,v 1.5 2003/06/03 02:56:17 millert Exp $" #include "extern.h" void -ierr() +ierr(void) { warn("%s", fname); @@ -59,7 +59,7 @@ ierr() } void -oerr() +oerr(void) { err(1, "stdout"); diff --git a/usr.bin/tail/tail.c b/usr.bin/tail/tail.c index cbbe143e95b..333eddcf7a2 100644 --- a/usr.bin/tail/tail.c +++ b/usr.bin/tail/tail.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tail.c,v 1.10 2003/06/03 02:56:17 millert Exp $ */ +/* $OpenBSD: tail.c,v 1.11 2003/06/10 22:20:52 deraadt Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -42,7 +42,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)tail.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: tail.c,v 1.10 2003/06/03 02:56:17 millert Exp $"; +static char rcsid[] = "$OpenBSD: tail.c,v 1.11 2003/06/10 22:20:52 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -65,9 +65,7 @@ static void obsolete(char **); static void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { struct stat sb; FILE *fp; @@ -218,8 +216,7 @@ main(argc, argv) * the option argument for a -b, -c or -n option gets converted. */ static void -obsolete(argv) - char *argv[]; +obsolete(char *argv[]) { char *ap, *p, *t; int len; @@ -301,7 +298,7 @@ obsolete(argv) } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: tail [-f | -r] [-b # | -c # | -n #] [file ...]\n"); |