comparison 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
comparison
equal deleted inserted replaced
280:68ce34b4243b 281:f562b9af2de7
217 } 217 }
218 218
219 // hlog_enable() 219 // hlog_enable()
220 // Enable logging to files. If root_dir is NULL, then $HOME/.mcabber is used. 220 // Enable logging to files. If root_dir is NULL, then $HOME/.mcabber is used.
221 // If loadfiles is TRUE, we will try to load buddies history logs from file. 221 // If loadfiles is TRUE, we will try to load buddies history logs from file.
222 void hlog_enable(guint enable, char *root_dir, guint loadfiles) 222 void hlog_enable(guint enable, const char *root_dir, guint loadfiles)
223 { 223 {
224 UseFileLogging = enable; 224 UseFileLogging = enable;
225 FileLoadLogs = loadfiles; 225 FileLoadLogs = loadfiles;
226 226
227 if (enable || loadfiles) { 227 if (enable || loadfiles) {