drop __P, suggested by sevan

This commit is contained in:
maxv 2018-05-28 20:34:45 +00:00
parent f5813daa27
commit 02ed4ce0ae
3 changed files with 42 additions and 42 deletions

View File

@ -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;

View File

@ -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 struct addrinfo * p_natt_oa = NULL;
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 {

View File

@ -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