From 64ec300d5d9bf265068bf66452ca9674098aa8f4 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Thu, 8 Feb 2018 16:57:41 +1100 Subject: [PATCH] Add full prototyped declarations for DCC hook function pointers --- source/dcc.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/source/dcc.c b/source/dcc.c index 0881a32..84b2269 100644 --- a/source/dcc.c +++ b/source/dcc.c @@ -76,16 +76,17 @@ HashEntry dcc_no_flood[DCC_HASHSIZE]; struct _dcc_types_ { - char *name; - char *module; - int type; - int (*init_func)(); - int (*open_func)(); - int (*input)(); - int (*output)(); - int (*close_func)(); - -} _dcc_types[] = + char *name; + char *module; + int type; + int (*init_func)(const char *, const char *, const char *, const char *, const char *, const char *, unsigned long, unsigned short); + int (*open_func)(int, int, unsigned long, unsigned short); + int (*input)(int, int, char *, int, int); + int (*output)(int, int, char *, int); + int (*close_func)(int, unsigned long, unsigned short); +}; + +struct _dcc_types_ _dcc_types[] = { {"", NULL, 0, NULL, NULL, NULL, NULL, NULL}, {"CHAT", NULL, DCC_CHAT, NULL, NULL, NULL, NULL, NULL},