Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/dist/ipsec-tools/src/setkey drop __P, suggested by sevan
details: https://anonhg.NetBSD.org/src/rev/7f43af699f93
branches: trunk
changeset: 319394:7f43af699f93
user: maxv <maxv%NetBSD.org@localhost>
date: Mon May 28 20:34:45 2018 +0000
description:
drop __P, suggested by sevan
diffstat:
crypto/dist/ipsec-tools/src/setkey/extern.h | 24 +++++++++++-----------
crypto/dist/ipsec-tools/src/setkey/parse.y | 30 ++++++++++++++--------------
crypto/dist/ipsec-tools/src/setkey/setkey.c | 30 ++++++++++++++--------------
3 files changed, 42 insertions(+), 42 deletions(-)
diffs (126 lines):
diff -r e5ad56875842 -r 7f43af699f93 crypto/dist/ipsec-tools/src/setkey/extern.h
--- a/crypto/dist/ipsec-tools/src/setkey/extern.h Mon May 28 20:18:58 2018 +0000
+++ b/crypto/dist/ipsec-tools/src/setkey/extern.h Mon May 28 20:34:45 2018 +0000
@@ -1,21 +1,21 @@
-/* $NetBSD: extern.h,v 1.5 2009/03/06 11:45:03 tteras Exp $ */
+/* $NetBSD: extern.h,v 1.6 2018/05/28 20:34:45 maxv Exp $ */
-void parse_init __P((void));
-int parse __P((FILE **));
-int parse_string __P((char *));
+void parse_init(void);
+int parse(FILE **);
+int parse_string(char *);
-int setkeymsg __P((char *, size_t *));
-int sendkeymsg __P((char *, size_t));
+int setkeymsg(char *, size_t *);
+int sendkeymsg(char *, size_t);
-int yylex __P((void));
-int yyparse __P((void));
-void yyfatal __P((const char *));
-void yyerror __P((const char *));
+int yylex(void);
+int yyparse(void);
+void yyfatal(const char *);
+void yyerror(const char *);
-u_int32_t *sendkeymsg_spigrep __P((unsigned int, struct addrinfo *,
- struct addrinfo *, int *));
+u_int32_t *sendkeymsg_spigrep(unsigned int, struct addrinfo *,
+ struct addrinfo *, int *);
extern int f_rfcmode;
extern int lineno;
diff -r e5ad56875842 -r 7f43af699f93 crypto/dist/ipsec-tools/src/setkey/parse.y
--- a/crypto/dist/ipsec-tools/src/setkey/parse.y Mon May 28 20:18:58 2018 +0000
+++ b/crypto/dist/ipsec-tools/src/setkey/parse.y Mon May 28 20:34:45 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.y,v 1.20 2018/05/28 19:52:18 maxv Exp $ */
+/* $NetBSD: parse.y,v 1.21 2018/05/28 20:34:45 maxv Exp $ */
/* $KAME: parse.y,v 1.81 2003/07/01 04:01:48 itojun Exp $ */
@@ -90,21 +90,21 @@
static int p_aiflags = 0, p_aifamily = PF_UNSPEC;
-static struct addrinfo *parse_addr __P((char *, char *));
-static int fix_portstr __P((int, vchar_t *, vchar_t *, vchar_t *));
-static int setvarbuf __P((char *, int *, struct sadb_ext *, int,
- const void *, int));
-void parse_init __P((void));
-void free_buffer __P((void));
+static struct addrinfo *parse_addr(char *, char *);
+static int fix_portstr(int, vchar_t *, vchar_t *, vchar_t *);
+static int setvarbuf(char *, int *, struct sadb_ext *, int,
+ const void *, int);
+void parse_init(void);
+void free_buffer(void);
-int setkeymsg0 __P((struct sadb_msg *, unsigned int, unsigned int, size_t));
-static int setkeymsg_spdaddr __P((unsigned int, unsigned int, vchar_t *,
- struct addrinfo *, int, struct addrinfo *, int));
-static int setkeymsg_spdaddr_tag __P((unsigned int, char *, vchar_t *));
-static int setkeymsg_addr __P((unsigned int, unsigned int,
- struct addrinfo *, struct addrinfo *, int));
-static int setkeymsg_add __P((unsigned int, unsigned int,
- struct addrinfo *, struct addrinfo *));
+int setkeymsg0(struct sadb_msg *, unsigned int, unsigned int, size_t);
+static int setkeymsg_spdaddr(unsigned int, unsigned int, vchar_t *,
+ struct addrinfo *, int, struct addrinfo *, int);
+static int setkeymsg_spdaddr_tag(unsigned int, char *, vchar_t *);
+static int setkeymsg_addr(unsigned int, unsigned int,
+ struct addrinfo *, struct addrinfo *, int);
+static int setkeymsg_add(unsigned int, unsigned int,
+ struct addrinfo *, struct addrinfo *);
%}
%union {
diff -r e5ad56875842 -r 7f43af699f93 crypto/dist/ipsec-tools/src/setkey/setkey.c
--- a/crypto/dist/ipsec-tools/src/setkey/setkey.c Mon May 28 20:18:58 2018 +0000
+++ b/crypto/dist/ipsec-tools/src/setkey/setkey.c Mon May 28 20:34:45 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setkey.c,v 1.17 2018/05/28 19:52:18 maxv Exp $ */
+/* $NetBSD: setkey.c,v 1.18 2018/05/28 20:34:45 maxv Exp $ */
/* $KAME: setkey.c,v 1.36 2003/09/24 23:52:51 itojun Exp $ */
@@ -71,20 +71,20 @@
#define strlcpy(d,s,l) (strncpy(d,s,l), (d)[(l)-1] = '\0')
-void usage __P((int));
-int main __P((int, char **));
-int get_supported __P((void));
-void sendkeyshort __P((u_int));
-void promisc __P((void));
-int postproc __P((struct sadb_msg *, int));
-int verifypriority __P((struct sadb_msg *m));
-int fileproc __P((const char *));
-const char *numstr __P((int));
-void shortdump_hdr __P((void));
-void shortdump __P((struct sadb_msg *));
-static void printdate __P((void));
-static int32_t gmt2local __P((time_t));
-void stdin_loop __P((void));
+void usage(int);
+int main(int, char **);
+int get_supported(void);
+void sendkeyshort(u_int);
+void promisc(void);
+int postproc(struct sadb_msg *, int);
+int verifypriority(struct sadb_msg *m);
+int fileproc(const char *);
+const char *numstr(int);
+void shortdump_hdr(void);
+void shortdump(struct sadb_msg *);
+static void printdate(void);
+static int32_t gmt2local(time_t);
+void stdin_loop(void);
#define MODE_SCRIPT 1
#define MODE_CMDDUMP 2
Home |
Main Index |
Thread Index |
Old Index