summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.c2
-rw-r--r--src/events.c2
-rw-r--r--src/modules.c6
3 files changed, 5 insertions, 5 deletions
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);