$NetBSD: patch-af,v 1.1 2006/07/23 15:00:41 taca Exp $ --- extern.h.orig 2002-01-20 23:20:46.000000000 +0900 +++ extern.h 2006-07-18 13:14:05.000000000 +0900 @@ -37,52 +37,55 @@ */ -char *newstr(); -void strlower(); -char *parse_address(); -void setsender(); -int addrecipient(); -void addalias(); -int getmxrr(); -void init_log(); -int addmyalias(); -int isamyalias(); -void lmtp(); -void lmtp_data_response(); -void deliver(); -int pregetmx(); -int getmxlist(); -void finalstatus(); -int addinetaddress(); -void set_timeout(); -void resource_usage(); +#ifdef __STDC__ +#define P(c) c +#else +#define P(c) +#endif + +char *newstr P((char *)); +void strlower P((char *)); +char *parse_address P((char *, char **, char **, char **)); +int addrecipient P((char *, char *, char *, char *)); +int getmxrr P((char *, struct domain *, int, int, int, long)); +void init_log P((void)); +int addmyalias P((char *)); +int isamyalias P((char *)); +void lmtp P((void)); +void lmtp_data_response P((int)); +void deliver P((void)); +int pregetmx P((struct domain *)); +int getmxlist P((struct domain *)); +void finalstatus P((void)); +int addinetaddress P((struct mx *, int, int, u_char *)); +void set_timeout P((char *)); +void resource_usage P((char *)); struct dns_stat *hash_query_lookup(); -struct domain *hash_domain_lookup(); -struct host *hash_host_lookup(); -struct host_map *hash_map_lookup(); -int host_map_load(); -char **host_map_lookup(); -int mxrand(); -int hash_domain_rcpts_lookup(); -void hash_domain_rcpts_enter(); -int isnumeric(); -int rcpts_def_load(); +struct domain *hash_domain_lookup P((char *, struct domain ***)); +struct host *hash_host_lookup P((char *, struct host ***)); +struct host_map *hash_map_lookup P((char *, struct host_map ***)); +int host_map_load P((void)); +char **host_map_lookup P((char *)); +int mxrand P((char *, char *)); +int hash_domain_rcpts_lookup P((char *)); +void hash_domain_rcpts_enter P((char *, struct domain_rcpts *)); +int isnumeric P((char *)); +int rcpts_def_load P((void)); + +#if SPT_TYPE != SPT_BUILTIN +void initsetproctitle P((int, char **, char **)); +void setproctitle P((const char *, ...)); +#endif -void initsetproctitle(); #ifdef JAZ_HACK2 void show_cache(); #endif -# ifdef __STDC__ -void log(int, const char *, ...); -void setproctitle(const char *, ...); -# else -void log(); -void setproctitle(); -# endif + +void mylog P((int, const char *, ...)); # if !HAVE_STRERROR -char *strerror(); +char *strerror P((int)); # endif # if !HAVE_SNPRINTF -int snprintf(); +int snprintf P((char *, size_t, const char *, ...)); # endif