From 6adc4b6c61bdc39a454d7bd4e19a58c6eda0a6e9 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Sat, 8 Nov 2008 00:03:17 +0000 Subject: Warning fixes. Staticise more of modules.c, and mark it for review. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1574 5417fbe8-f217-4b02-8779-1006273d7864 --- include/modules.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 1b5307614..34a4a866f 100644 --- a/include/modules.h +++ b/include/modules.h @@ -286,7 +286,7 @@ MDE void moduleAddVersion(const char *version); MDE void moduleAddAuthor(const char *author); void modules_init(void); void modules_delayed_init(void); -void moduleCallBackPrepForUnload(char *mod_name); +void moduleCallBackPrepForUnload(const char *mod_name); MDE void moduleCallBackDeleteEntry(ModuleCallBack * prev); MDE char *moduleGetLastBuffer(void); MDE void moduleSetHelpHelp(void (*func) (User * u)); @@ -318,8 +318,8 @@ MDE int destroyCommand(Command *c); /* destroy a command */ MDE int addCoreCommand(CommandHash *cmdTable[], Command *c); /* Add a command to a command table */ MDE int moduleAddCommand(CommandHash *cmdTable[], Command *c, int pos); MDE int addCommand(CommandHash *cmdTable[], Command *c,int pos); -MDE int delCommand(CommandHash *cmdTable[], Command *c,char *mod_name); /* Del a command from a cmd table */ -MDE int moduleDelCommand(CommandHash *cmdTable[],char *name); /* Del a command from a cmd table */ +MDE int delCommand(CommandHash *cmdTable[], Command *c, const char *mod_name); /* Del a command from a cmd table */ +MDE int moduleDelCommand(CommandHash *cmdTable[], const char *name); /* Del a command from a cmd table */ Command *findCommand(CommandHash *cmdTable[], const char *name); /* Find a command */ /*************************************************************************/ -- cgit