diff options
author | Adam <Adam@anope.org> | 2012-09-21 21:39:32 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-09-21 21:39:32 -0400 |
commit | 3779ed916a1bf70d744a7ba6ac5fa31862057d0f (patch) | |
tree | 0e1f5f3b2b8c36eefa8e52872fb2164fa5569075 /src/modules/cs_appendtopic.c | |
parent | 3f05a42515b588b508419040e71b74ea2a27f1d0 (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/modules/cs_appendtopic.c')
-rw-r--r-- | src/modules/cs_appendtopic.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c index 7868430fe..13d232105 100644 --- a/src/modules/cs_appendtopic.c +++ b/src/modules/cs_appendtopic.c @@ -48,10 +48,10 @@ #define LNG_CHAN_HELP_APPENDTOPIC 1 #define LNG_APPENDTOPIC_SYNTAX 2 -int my_cs_appendtopic(User * u); -void my_cs_help(User * u); -int my_cs_help_appendtopic(User * u); -void my_add_languages(void); +static int my_cs_appendtopic(User * u); +static void my_cs_help(User * u); +static int my_cs_help_appendtopic(User * u); +static void my_add_languages(void); int AnopeInit(int argc, char **argv) { @@ -84,12 +84,12 @@ void AnopeFini(void) alog("[cs_appendtopic] Unloaded successfully"); } -void my_cs_help(User * u) +static void my_cs_help(User * u) { moduleNoticeLang(s_ChanServ, u, LNG_CHAN_HELP); } -int my_cs_help_appendtopic(User * u) +static int my_cs_help_appendtopic(User * u) { moduleNoticeLang(s_ChanServ, u, LNG_APPENDTOPIC_SYNTAX); notice(s_ChanServ, u->nick, " "); @@ -97,7 +97,7 @@ int my_cs_help_appendtopic(User * u) return MOD_STOP; } -int my_cs_appendtopic(User * u) +static int my_cs_appendtopic(User * u) { char *cur_buffer; char *chan; @@ -161,7 +161,7 @@ int my_cs_appendtopic(User * u) return MOD_CONT; } -void my_add_languages(void) +static void my_add_languages(void) { /* English (US) */ char *langtable_en_us[] = { |