From 0118e0b185413fbf8794fe89798c61b0a6f9a893 Mon Sep 17 00:00:00 2001 From: "certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 3 Jun 2006 09:25:38 +0000 Subject: # BUILD : 1.7.14 (1040) # BUGS : 509 511 # NOTES : Fixed compiler warnigs, thx to trystan. again. git-svn-id: svn://svn.anope.org/anope/trunk@1040 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@764 5417fbe8-f217-4b02-8779-1006273d7864 --- src/config.c | 2 +- src/events.c | 2 +- src/modules.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/config.c b/src/config.c index b46904a6b..de5a75f93 100644 --- a/src/config.c +++ b/src/config.c @@ -651,7 +651,7 @@ Directive directives[] = { /* Print an error message to the log (and the console, if open). */ -void error(int linenum, char *message, ...) +void error(int linenum, const char *message, ...) { char buf[4096]; va_list args; diff --git a/src/events.c b/src/events.c index 8d675b976..08af16dd9 100644 --- a/src/events.c +++ b/src/events.c @@ -36,7 +36,7 @@ EvtHook *find_eventhook(const char *name) return m; } -void send_event(char *name, int argc, ...) +void send_event(const char *name, int argc, ...) { va_list va; char *a; diff --git a/src/modules.c b/src/modules.c index 5f7d75020..26e82795f 100644 --- a/src/modules.c +++ b/src/modules.c @@ -1324,7 +1324,7 @@ Command *findCommand(CommandHash * cmdTable[], const char *name) * @param func a pointer to the function to call when we recive this message * @return a new Message object **/ -Message *createMessage(char *name, +Message *createMessage(const char *name, int (*func) (char *source, int ac, char **av)) { Message *m = NULL; @@ -1615,7 +1615,7 @@ int destroyMessage(Message * m) * Add the modules version info. * @param version the version of the current module **/ -void moduleAddVersion(char *version) +void moduleAddVersion(const char *version) { if (mod_current_module && version) { mod_current_module->version = sstrdup(version); @@ -1626,7 +1626,7 @@ void moduleAddVersion(char *version) * Add the modules author info * @param author the author of the module **/ -void moduleAddAuthor(char *author) +void moduleAddAuthor(const char *author) { if (mod_current_module && author) { mod_current_module->author = sstrdup(author); -- cgit