Skip to content

won't compile with blacklist module #35

Description

@xnite

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions