summaryrefslogtreecommitdiffstats
path: root/usr.bin/rev
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-10 22:20:44 +0000
committerderaadt <deraadt@openbsd.org>2003-06-10 22:20:44 +0000
commit1837a5ca509d93cac77d2e89322c0c4869f9215d (patch)
tree52dbe14a25e44bdf8161f4c51f39a50c072fe221 /usr.bin/rev
parentIt would kind of help if the flags member was initialized, otherwise random (diff)
downloadwireguard-openbsd-1837a5ca509d93cac77d2e89322c0c4869f9215d.tar.xz
wireguard-openbsd-1837a5ca509d93cac77d2e89322c0c4869f9215d.zip
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/rev')
-rw-r--r--usr.bin/rev/rev.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/rev/rev.c b/usr.bin/rev/rev.c
index 30c797dc344..420a916415b 100644
--- a/usr.bin/rev/rev.c
+++ b/usr.bin/rev/rev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rev.c,v 1.6 2003/06/03 02:56:15 millert Exp $ */
+/* $OpenBSD: rev.c,v 1.7 2003/06/10 22:20:50 deraadt Exp $ */
/* $NetBSD: rev.c,v 1.5 1995/09/28 08:49:40 tls Exp $ */
/*-
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rev.c 8.3 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: rev.c,v 1.6 2003/06/03 02:56:15 millert Exp $";
+static char rcsid[] = "$OpenBSD: rev.c,v 1.7 2003/06/10 22:20:50 deraadt Exp $";
#endif
#endif /* not lint */
@@ -56,9 +56,7 @@ static char rcsid[] = "$OpenBSD: rev.c,v 1.6 2003/06/03 02:56:15 millert Exp $";
void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
char *filename, *p, *t;
FILE *fp;
@@ -106,7 +104,7 @@ main(argc, argv)
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: rev [file ...]\n");
exit(1);