summaryrefslogtreecommitdiffstats
path: root/usr.bin/cmp/cmp.c
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/cmp/cmp.c
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/cmp/cmp.c')
-rw-r--r--usr.bin/cmp/cmp.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/usr.bin/cmp/cmp.c b/usr.bin/cmp/cmp.c
index a325a4b0bff..cb7ae3765b2 100644
--- a/usr.bin/cmp/cmp.c
+++ b/usr.bin/cmp/cmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmp.c,v 1.10 2003/06/03 02:56:06 millert Exp $ */
+/* $OpenBSD: cmp.c,v 1.11 2003/06/10 22:20:45 deraadt Exp $ */
/* $NetBSD: cmp.c,v 1.7 1995/09/08 03:22:56 tls Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)cmp.c 8.3 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: cmp.c,v 1.10 2003/06/03 02:56:06 millert Exp $";
+static char rcsid[] = "$OpenBSD: cmp.c,v 1.11 2003/06/10 22:20:45 deraadt Exp $";
#endif
#endif /* not lint */
@@ -62,9 +62,7 @@ int lflag, sflag;
static void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
struct stat sb1, sb2;
off_t skip1, skip2;
@@ -101,8 +99,7 @@ main(argc, argv)
special = 1;
fd1 = 0;
file1 = "stdin";
- }
- else if ((fd1 = open(file1, O_RDONLY, 0)) < 0) {
+ } else if ((fd1 = open(file1, O_RDONLY, 0)) < 0) {
if (sflag)
exit(ERR_EXIT);
else
@@ -119,8 +116,7 @@ main(argc, argv)
special = 1;
fd2 = 0;
file2 = "stdin";
- }
- else if ((fd2 = open(file2, O_RDONLY, 0)) < 0) {
+ } else if ((fd2 = open(file2, O_RDONLY, 0)) < 0) {
if (sflag)
exit(ERR_EXIT);
else
@@ -160,7 +156,7 @@ main(argc, argv)
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr,