From 3779ed916a1bf70d744a7ba6ac5fa31862057d0f Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 21 Sep 2012 21:39:32 -0400 Subject: Made all module functions static to fix OSX's linker from linking modules with similar function names to each other which causes complete and total chaos. --- src/core/os_oper.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/core/os_oper.c') diff --git a/src/core/os_oper.c b/src/core/os_oper.c index a8abb2ba6..746d0ad67 100644 --- a/src/core/os_oper.c +++ b/src/core/os_oper.c @@ -14,11 +14,11 @@ #include "module.h" -int do_oper(User * u); -int oper_list_callback(SList * slist, int number, void *item, +static int do_oper(User * u); +static int oper_list_callback(SList * slist, int number, void *item, va_list args); -int oper_list(int number, NickCore * nc, User * u, int *sent_header); -void myOperServHelp(User * u); +static int oper_list(int number, NickCore * nc, User * u, int *sent_header); +static void myOperServHelp(User * u); /** * Create the command, and tell anope about it. @@ -56,7 +56,7 @@ void AnopeFini(void) * Add the help response to anopes /os help output. * @param u The user who is requesting help **/ -void myOperServHelp(User * u) +static void myOperServHelp(User * u) { notice_lang(s_OperServ, u, OPER_HELP_CMD_OPER); } @@ -66,7 +66,7 @@ void myOperServHelp(User * u) * @param u The user who issued the command * @param MOD_CONT to continue processing other modules, MOD_STOP to stop processing. **/ -int do_oper(User * u) +static int do_oper(User * u) { char *cmd = strtok(NULL, " "); char *nick = strtok(NULL, " "); @@ -226,7 +226,7 @@ int do_oper(User * u) /* Lists an oper entry, prefixing it with the header if needed */ -int oper_list(int number, NickCore * nc, User * u, int *sent_header) +static int oper_list(int number, NickCore * nc, User * u, int *sent_header) { if (!nc) return 0; @@ -242,7 +242,7 @@ int oper_list(int number, NickCore * nc, User * u, int *sent_header) /* Callback for enumeration purposes */ -int oper_list_callback(SList * slist, int number, void *item, va_list args) +static int oper_list_callback(SList * slist, int number, void *item, va_list args) { User *u = va_arg(args, User *); int *sent_header = va_arg(args, int *); -- cgit