summaryrefslogtreecommitdiff
path: root/src/core/os_modinfo.c
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-09-21 21:39:32 -0400
committerAdam <Adam@anope.org>2012-09-21 21:39:32 -0400
commit3779ed916a1bf70d744a7ba6ac5fa31862057d0f (patch)
tree0e1f5f3b2b8c36eefa8e52872fb2164fa5569075 /src/core/os_modinfo.c
parent3f05a42515b588b508419040e71b74ea2a27f1d0 (diff)
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.
Diffstat (limited to 'src/core/os_modinfo.c')
-rw-r--r--src/core/os_modinfo.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/os_modinfo.c b/src/core/os_modinfo.c
index d58a8fc90..806788272 100644
--- a/src/core/os_modinfo.c
+++ b/src/core/os_modinfo.c
@@ -14,10 +14,10 @@
#include "module.h"
-int do_modinfo(User * u);
-void myOperServHelp(User * u);
-int showModuleMsgLoaded(MessageHash * msgList, char *mod_name, User * u);
-int showModuleCmdLoaded(CommandHash * cmdList, char *mod_name, User * u);
+static int do_modinfo(User * u);
+static void myOperServHelp(User * u);
+static int showModuleMsgLoaded(MessageHash * msgList, char *mod_name, User * u);
+static int showModuleCmdLoaded(CommandHash * cmdList, char *mod_name, User * u);
/**
* Create the command, and tell anope about it.
@@ -54,7 +54,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_MODINFO);
}
@@ -64,7 +64,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_modinfo(User * u)
+static int do_modinfo(User * u)
{
char *file;
struct tm tm;
@@ -102,7 +102,7 @@ int do_modinfo(User * u)
return MOD_CONT;
}
-int showModuleCmdLoaded(CommandHash * cmdList, char *mod_name, User * u)
+static int showModuleCmdLoaded(CommandHash * cmdList, char *mod_name, User * u)
{
Command *c;
CommandHash *current;
@@ -120,7 +120,7 @@ int showModuleCmdLoaded(CommandHash * cmdList, char *mod_name, User * u)
return display;
}
-int showModuleMsgLoaded(MessageHash * msgList, char *mod_name, User * u)
+static int showModuleMsgLoaded(MessageHash * msgList, char *mod_name, User * u)
{
Message *msg;
MessageHash *mcurrent;