summaryrefslogtreecommitdiff
path: root/sys/ipkdb
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2009-03-14 14:45:51 +0000
committerdsl <dsl@NetBSD.org>2009-03-14 14:45:51 +0000
commit02cdf4d2c869ecfa1ae5484cf77eefe2fbcc6d94 (patch)
tree9a02e625d403e5fcedfdc6be4803e2404356bf31 /sys/ipkdb
parentdfbb3f921a23a1aba4463f31ef9233ac94ce606c (diff)
Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball. i386 and amd64 GENERIC and sys still build.
Diffstat (limited to 'sys/ipkdb')
-rw-r--r--sys/ipkdb/ipkdb.h42
-rw-r--r--sys/ipkdb/ipkdb_ipkdb.c52
2 files changed, 47 insertions, 47 deletions
diff --git a/sys/ipkdb/ipkdb.h b/sys/ipkdb/ipkdb.h
index c6ec1b9d155..e152caebb43 100644
--- a/sys/ipkdb/ipkdb.h
+++ b/sys/ipkdb/ipkdb.h
@@ -1,4 +1,4 @@
-/* $NetBSD: ipkdb.h,v 1.5 2007/01/13 18:54:43 cube Exp $ */
+/* $NetBSD: ipkdb.h,v 1.6 2009/03/14 14:46:09 dsl Exp $ */
/*
* Copyright (C) 1993-2000 Wolfgang Solfrank.
@@ -56,10 +56,10 @@ struct ipkdb_if {
/* Data from here on is to be filled by the driver */
const char *name;
void *port;
- void (*start) __P((struct ipkdb_if *));
- void (*leave) __P((struct ipkdb_if *));
- int (*receive) __P((struct ipkdb_if *, u_char *, int));
- void (*send) __P((struct ipkdb_if *, u_char *, int));
+ void (*start)(struct ipkdb_if *);
+ void (*leave)(struct ipkdb_if *);
+ int (*receive)(struct ipkdb_if *, u_char *, int);
+ void (*send)(struct ipkdb_if *, u_char *, int);
};
/* flags: */
@@ -72,10 +72,10 @@ struct ipkdb_if {
/*
* Interface routines, to be called by machine dependent code.
*/
-extern void ipkdb_init __P((void));
-extern void ipkdb_connect __P((int));
-extern void ipkdb_panic __P((void));
-extern int ipkdbcmds __P((void));
+extern void ipkdb_init(void);
+extern void ipkdb_connect(int);
+extern void ipkdb_panic(void);
+extern int ipkdbcmds(void);
/* Return values from ipkdbcmds: */
#define IPKDB_CMD_RUN 0
#define IPKDB_CMD_STEP 1
@@ -84,31 +84,31 @@ extern int ipkdbcmds __P((void));
/* To be called by udp_input on receipt of a possible debugging packet */
struct in_addr;
struct mbuf;
-extern int checkipkdb __P((struct in_addr *, u_short, u_short,
- struct mbuf *, int, int));
+extern int checkipkdb(struct in_addr *, u_short, u_short,
+ struct mbuf *, int, int);
/*
* Interface routines, to be called by ipkdb itself.
*/
-extern int ipkdbifinit __P((struct ipkdb_if *));
+extern int ipkdbifinit(struct ipkdb_if *);
/*
* Utilities (used to avoid calling system routines during debugging).
*/
-extern void ipkdbcopy __P((const void *, void *, int));
-extern void ipkdbzero __P((void *, int));
-extern int ipkdbcmp __P((void *, void *, int));
+extern void ipkdbcopy(const void *, void *, int);
+extern void ipkdbzero(void *, int);
+extern int ipkdbcmp(void *, void *, int);
/*
* Machine dependent routines for IPKDB.
*/
-extern void ipkdbinit __P((void));
-extern void ipkdb_trap __P((void));
-extern int ipkdb_poll __P((void));
+extern void ipkdbinit(void);
+extern void ipkdb_trap(void);
+extern int ipkdb_poll(void);
-extern int ipkdbif_init __P((struct ipkdb_if *));
+extern int ipkdbif_init(struct ipkdb_if *);
-extern int ipkdbfbyte __P((u_char *));
-extern int ipkdbsbyte __P((u_char *, int));
+extern int ipkdbfbyte(u_char *);
+extern int ipkdbsbyte(u_char *, int);
#endif /* _IPKDB_H */
diff --git a/sys/ipkdb/ipkdb_ipkdb.c b/sys/ipkdb/ipkdb_ipkdb.c
index 6402d6ebd2f..6a337bca8bb 100644
--- a/sys/ipkdb/ipkdb_ipkdb.c
+++ b/sys/ipkdb/ipkdb_ipkdb.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ipkdb_ipkdb.c,v 1.21 2007/11/24 14:20:41 elad Exp $ */
+/* $NetBSD: ipkdb_ipkdb.c,v 1.22 2009/03/14 14:46:09 dsl Exp $ */
/*
* Copyright (C) 1993-2000 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipkdb_ipkdb.c,v 1.21 2007/11/24 14:20:41 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipkdb_ipkdb.c,v 1.22 2009/03/14 14:46:09 dsl Exp $");
#include "opt_ipkdb.h"
@@ -70,24 +70,24 @@ static char ipkdbkey[] = IPKDBKEY;
static struct ipkdb_if ipkdb_if;
-static u_char *ipkdbaddr __P((u_char *, int *, void **));
-static void peekmem __P((struct ipkdb_if *, u_char *, void *, long));
-static void pokemem __P((struct ipkdb_if *, u_char *, void *, long));
-static u_int32_t getnl __P((void *));
-static u_int getns __P((void *));
-static void setnl __P((void *, u_int32_t));
-static void setns __P((void *, int));
-static u_short cksum __P((u_short, void *, int));
-static int assemble __P((struct ipkdb_if *, void *));
-static char *inpkt __P((struct ipkdb_if *, char *, int));
-static void outpkt __P((struct ipkdb_if *, char *, int, int, int));
-static void init __P((struct ipkdb_if *));
-static void *chksum __P((void *, int));
-static void getpkt __P((struct ipkdb_if *, char *, int *));
-static void putpkt __P((struct ipkdb_if *, const char *, int));
-static int check_ipkdb __P((struct ipkdb_if *, struct in_addr *, char *, int));
-static int connectipkdb __P((struct ipkdb_if *, char *, int));
-static int hmac_init __P((void));
+static u_char *ipkdbaddr(u_char *, int *, void **);
+static void peekmem(struct ipkdb_if *, u_char *, void *, long);
+static void pokemem(struct ipkdb_if *, u_char *, void *, long);
+static u_int32_t getnl(void *);
+static u_int getns(void *);
+static void setnl(void *, u_int32_t);
+static void setns(void *, int);
+static u_short cksum(u_short, void *, int);
+static int assemble(struct ipkdb_if *, void *);
+static char *inpkt(struct ipkdb_if *, char *, int);
+static void outpkt(struct ipkdb_if *, char *, int, int, int);
+static void init(struct ipkdb_if *);
+static void *chksum(void *, int);
+static void getpkt(struct ipkdb_if *, char *, int *);
+static void putpkt(struct ipkdb_if *, const char *, int);
+static int check_ipkdb(struct ipkdb_if *, struct in_addr *, char *, int);
+static int connectipkdb(struct ipkdb_if *, char *, int);
+static int hmac_init(void);
void
ipkdb_init()
@@ -723,12 +723,12 @@ static struct ipkdb_MD5Context {
u_char in[64];
} icontext, ocontext;
-static u_int32_t getNl __P((void *));
-static void setNl __P((void *, u_int32_t));
-static void ipkdb_MD5Transform __P((struct ipkdb_MD5Context *));
-static void ipkdb_MD5Init __P((struct ipkdb_MD5Context *));
-static void ipkdb_MD5Update __P((struct ipkdb_MD5Context *, u_char *, u_int));
-static u_char *ipkdb_MD5Final __P((struct ipkdb_MD5Context *));
+static u_int32_t getNl(void *);
+static void setNl(void *, u_int32_t);
+static void ipkdb_MD5Transform(struct ipkdb_MD5Context *);
+static void ipkdb_MD5Init(struct ipkdb_MD5Context *);
+static void ipkdb_MD5Update(struct ipkdb_MD5Context *, u_char *, u_int);
+static u_char *ipkdb_MD5Final(struct ipkdb_MD5Context *);
inline static u_int32_t
getNl(vs)