-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
Description
I can't seem to figure out why X3 won't compile with the blacklist module:
mod-blacklist.c: In function ‘blacklist_init’:
mod-blacklist.c:401:23: warning: passing argument 1 of ‘reg_new_user_func’ from incompatible pointer type
reg_new_user_func(blacklist_check_user);
^
In file included from gline.h:24:0,
from mod-blacklist.c:22:
hash.h:414:6: note: expected ‘new_user_func_t’ but argument is of type ‘int (*)(struct userNode *)’
void reg_new_user_func(new_user_func_t handler, void *extra);
^
mod-blacklist.c:401:5: error: too few arguments to function ‘reg_new_user_func’
reg_new_user_func(blacklist_check_user);
^
In file included from gline.h:24:0,
from mod-blacklist.c:22:
hash.h:414:6: note: declared here
void reg_new_user_func(new_user_func_t handler, void *extra);
^
mod-blacklist.c:402:19: warning: passing argument 1 of ‘reg_exit_func’ from incompatible pointer type
reg_exit_func(blacklist_cleanup);
^
In file included from recdb.h:24:0,
from conf.h:24,
from mod-blacklist.c:21:
common.h:172:6: note: expected ‘exit_func_t’ but argument is of type ‘void (*)(void)’
void reg_exit_func(exit_func_t handler, void *extra);
^
mod-blacklist.c:402:5: error: too few arguments to function ‘reg_exit_func’
reg_exit_func(blacklist_cleanup);
^
In file included from recdb.h:24:0,
from conf.h:24,
from mod-blacklist.c:21:
common.h:172:6: note: declared here
void reg_exit_func(exit_func_t handler, void *extra);
^
Makefile:411: recipe for target 'mod-blacklist.o' failed
make[2]: *** [mod-blacklist.o] Error 1
make[2]: Leaving directory '/home/ircd/x3-source/src'
Makefile:285: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ircd/x3-source/src'
Makefile:268: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1