diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-19 18:33:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-19 18:33:58 +0000 |
commit | 55a698838128a838833325b8d51de5ab3899bdff (patch) | |
tree | 9993640dbffde59c64100d38ea47a35857179e21 | |
parent | 70aa23fe203b930c720f5c11ff0b8239445cd461 (diff) |
add a bunch of missing prototypes
ok beck phessler
-rw-r--r-- | libexec/spamd/grey.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/libexec/spamd/grey.c b/libexec/spamd/grey.c index cba04b50cdf..70481c16d9b 100644 --- a/libexec/spamd/grey.c +++ b/libexec/spamd/grey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grey.c,v 1.53 2013/08/21 16:13:29 millert Exp $ */ +/* $OpenBSD: grey.c,v 1.54 2013/11/19 18:33:57 deraadt Exp $ */ /* * Copyright (c) 2004-2006 Bob Beck. All rights reserved. @@ -61,6 +61,24 @@ int server_lookup4(struct sockaddr_in *, struct sockaddr_in *, int server_lookup6(struct sockaddr_in6 *, struct sockaddr_in6 *, struct sockaddr_in6 *); +void configure_spamd(char **, size_t, FILE *); +int server_lookup(struct sockaddr *, struct sockaddr *, + struct sockaddr *); +int configure_pf(char **, int); +char *dequotetolower(const char *); +void readsuffixlists(void); +void freeaddrlists(void); +int addwhiteaddr(char *); +int addtrapaddr(char *); +int db_addrstate(DB *, char *); +int greyscan(char *); +int trapcheck(DB *, char *); +int twupdate(char *, char *, char *, char *, char *); +int twread(char *); +int greyreader(void); +void greyscanner(void); + + size_t whitecount, whitealloc; size_t trapcount, trapalloc; char **whitelist; @@ -721,7 +739,8 @@ twupdate(char *dbname, char *what, char *ip, char *source, char *expires) now = time(NULL); /* expiry times have to be in the future */ - expire = strtonum(expires, now, sizeof(time_t) == sizeof(int) ? INT_MAX : LLONG_MAX, NULL); + expire = strtonum(expires, now, + sizeof(time_t) == sizeof(int) ? INT_MAX : LLONG_MAX, NULL); if (expire == 0) return(-1); |