comparison mcabber/src/hooks.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 73f6ce668ba8
children 45076d02eeef 33b8e801ffa6
comparison
equal deleted inserted replaced
280:68ce34b4243b 281:f562b9af2de7
88 /* External commands */ 88 /* External commands */
89 89
90 // hk_ext_cmd_init() 90 // hk_ext_cmd_init()
91 // Initialize external command variable. 91 // Initialize external command variable.
92 // Can be called with parameter NULL to reset and free memory. 92 // Can be called with parameter NULL to reset and free memory.
93 void hk_ext_cmd_init(char *command) 93 void hk_ext_cmd_init(const char *command)
94 { 94 {
95 if (extcommand) { 95 if (extcommand) {
96 g_free(extcommand); 96 g_free(extcommand);
97 extcommand = NULL; 97 extcommand = NULL;
98 } 98 }