From: michael Date: Sat, 6 Jun 2015 16:58:51 +0000 (+0000) Subject: - Cleaned up prototypes X-Git-Tag: 1.0.7~4 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=be9fae7c4f7e1dfe8aca36670ff52c4b58b00752;p=hopm.git - Cleaned up prototypes git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@6058 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/firedns.h b/src/firedns.h index bd65d5b..5b4cc23 100644 --- a/src/firedns.h +++ b/src/firedns.h @@ -73,13 +73,13 @@ struct firedns_result }; /* non-blocking functions */ -extern int firedns_getip(int type, const char * const name, void *info); -extern struct firedns_result *firedns_getresult(const int fd); +extern int firedns_getip(int, const char *const, void *); +extern struct firedns_result *firedns_getresult(const int); /* low-timeout blocking functions */ -extern char *firedns_resolveip(int type, const char * const name); -extern struct in_addr *firedns_resolveip4(const char * const name); -extern struct in6_addr *firedns_resolveip6(const char * const name); +extern char *firedns_resolveip(int, const char *const); +extern struct in_addr *firedns_resolveip4(const char *const); +extern struct in6_addr *firedns_resolveip6(const char *const); extern void firedns_init(void); extern void firedns_cycle(void); diff --git a/src/log.h b/src/log.h index aa03b50..9deef28 100644 --- a/src/log.h +++ b/src/log.h @@ -26,8 +26,8 @@ extern void log_close(void); extern void scanlog_open(const char *); extern void scanlog_close(void); #ifdef __GNUC__ -extern void log_printf(const char *data, ...) __attribute__((format(printf,1,2))); +extern void log_printf(const char *, ...) __attribute__((format(printf,1,2))); #else -extern void log_printf(const char *data, ...); +extern void log_printf(const char *, ...); #endif #endif diff --git a/src/memory.h b/src/memory.h index 797efa3..08f14c9 100644 --- a/src/memory.h +++ b/src/memory.h @@ -21,7 +21,7 @@ #ifndef MALLOC_H #define MALLOC_H -extern void *xcalloc(size_t bytes); +extern void *xcalloc(size_t); extern void xfree(void *); extern void *xstrdup(const char *);