diff mcabber/src/histolog.c @ 281:f562b9af2de7

Add "const" specifier in prototypes It's easier then to know when variables are read-only (and shouldn't be freed).
author Mikael Berthe <mikael@lilotux.net>
date Wed, 06 Jul 2005 22:18:05 +0100
parents 4d7040cff8ee
children e7e2f2fcc765 33b8e801ffa6
line wrap: on
line diff
--- a/mcabber/src/histolog.c	Wed Jul 06 21:28:37 2005 +0100
+++ b/mcabber/src/histolog.c	Wed Jul 06 22:18:05 2005 +0100
@@ -219,7 +219,7 @@
 //  hlog_enable()
 // Enable logging to files.  If root_dir is NULL, then $HOME/.mcabber is used.
 // If loadfiles is TRUE, we will try to load buddies history logs from file.
-void hlog_enable(guint enable, char *root_dir, guint loadfiles)
+void hlog_enable(guint enable, const char *root_dir, guint loadfiles)
 {
   UseFileLogging = enable;
   FileLoadLogs = loadfiles;