summaryrefslogtreecommitdiff
path: root/usr.bin/cksum
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
commit6d57a1a176004a7d8fc009cdcf760098f86e3263 (patch)
treeee423c619fad03813234b9362694a17f3a638f0b /usr.bin/cksum
parentc707cb295fc3cac8d8feb343e949e0dcf71b8476 (diff)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'usr.bin/cksum')
-rw-r--r--usr.bin/cksum/cksum.c10
-rw-r--r--usr.bin/cksum/extern.h14
2 files changed, 12 insertions, 12 deletions
diff --git a/usr.bin/cksum/cksum.c b/usr.bin/cksum/cksum.c
index 5165ef5a9c1..6eade95fb57 100644
--- a/usr.bin/cksum/cksum.c
+++ b/usr.bin/cksum/cksum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cksum.c,v 1.7 2001/11/19 19:02:13 mpech Exp $ */
+/* $OpenBSD: cksum.c,v 1.8 2002/02/16 21:27:44 millert Exp $ */
/* $NetBSD: cksum.c,v 1.7 1995/09/02 05:45:18 jtc Exp $ */
/*-
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)cksum.c 8.2 (Berkeley) 4/28/95";
#endif
-static char rcsid[] = "$OpenBSD: cksum.c,v 1.7 2001/11/19 19:02:13 mpech Exp $";
+static char rcsid[] = "$OpenBSD: cksum.c,v 1.8 2002/02/16 21:27:44 millert Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
@@ -64,7 +64,7 @@ static char rcsid[] = "$OpenBSD: cksum.c,v 1.7 2001/11/19 19:02:13 mpech Exp $";
#include "extern.h"
-void usage __P((void));
+void usage(void);
extern char *__progname;
@@ -76,8 +76,8 @@ main(argc, argv)
int ch, fd, rval;
u_int32_t len, val;
char *fn;
- int (*cfncn) __P((int, u_int32_t *, u_int32_t *));
- void (*pfncn) __P((char *, u_int32_t, u_int32_t));
+ int (*cfncn)(int, u_int32_t *, u_int32_t *);
+ void (*pfncn)(char *, u_int32_t, u_int32_t);
setlocale(LC_ALL, "");
diff --git a/usr.bin/cksum/extern.h b/usr.bin/cksum/extern.h
index 5c821aabe58..27156b21b1f 100644
--- a/usr.bin/cksum/extern.h
+++ b/usr.bin/cksum/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.2 1996/06/26 05:32:02 deraadt Exp $ */
+/* $OpenBSD: extern.h,v 1.3 2002/02/16 21:27:44 millert Exp $ */
/* $NetBSD: extern.h,v 1.5 1995/03/26 05:15:19 glass Exp $ */
/*-
@@ -39,10 +39,10 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-int crc __P((int, u_int32_t *, u_int32_t *));
-void pcrc __P((char *, u_int32_t, u_int32_t));
-void psum1 __P((char *, u_int32_t, u_int32_t));
-void psum2 __P((char *, u_int32_t, u_int32_t));
-int csum1 __P((int, u_int32_t *, u_int32_t *));
-int csum2 __P((int, u_int32_t *, u_int32_t *));
+int crc(int, u_int32_t *, u_int32_t *);
+void pcrc(char *, u_int32_t, u_int32_t);
+void psum1(char *, u_int32_t, u_int32_t);
+void psum2(char *, u_int32_t, u_int32_t);
+int csum1(int, u_int32_t *, u_int32_t *);
+int csum2(int, u_int32_t *, u_int32_t *);
__END_DECLS