From 9e5bb795629f41e39517305dcd2784dae1af66f1 Mon Sep 17 00:00:00 2001 From: "certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 4 Jun 2006 10:10:26 +0000 Subject: # BUILD : 1.7.14 (1041) # BUGS : 514 # NOTES : Fixed booboo. Thx to Trystan. git-svn-id: svn://svn.anope.org/anope/trunk@1041 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@765 5417fbe8-f217-4b02-8779-1006273d7864 --- include/extern.h | 4 ++-- include/modules.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/extern.h b/include/extern.h index 2f4feb434..fefdc56bb 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1347,8 +1347,8 @@ E char *host_resolve(char *host); E void event_message_process(char *eventbuf); E void eventprintf(char *fmt, ...); -E void event_process_hook(char *name, int argc, char **argv); -E void send_event(char *name, int argc, ...); +E void event_process_hook(const char *name, int argc, char **argv); +E void send_event(const char *name, int argc, ...); #ifdef _WIN32 E char *GetWindowsVersion(void) ; diff --git a/include/modules.h b/include/modules.h index f9c16f7b3..9079d80a9 100644 --- a/include/modules.h +++ b/include/modules.h @@ -273,8 +273,8 @@ int loadModule(Module *m,User *u); /* Load the given module into the program */ int protocol_module_init(void); /* Load the IRCD Protocol Module up*/ int unloadModule(Module *m, User *u); /* Unload the given module from the pro */ int prepForUnload(Module *m); /* Prepare the module for unload */ -MDE void moduleAddVersion(char *version); -MDE void moduleAddAuthor(char *author); +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); @@ -316,7 +316,7 @@ Command *findCommand(CommandHash *cmdTable[], const char *name); /* Find a comma /*************************************************************************/ /* Message Managment Functions */ -MDE Message *createMessage(char *name,int (*func)(char *source, int ac, char **av)); +MDE Message *createMessage(const char *name,int (*func)(char *source, int ac, char **av)); Message *findMessage(MessageHash *msgTable[], const char *name); /* Find a Message */ MDE int addMessage(MessageHash *msgTable[], Message *m, int pos); /* Add a Message to a Message table */ MDE int addCoreMessage(MessageHash *msgTable[], Message *m); /* Add a Message to a Message table */ -- cgit