--- mqtt/src/dl.c 2011/11/23 01:07:18 1.1.2.2 +++ mqtt/src/dl.c 2011/11/23 08:09:40 1.1.2.3 @@ -25,13 +25,13 @@ mqttLog(const char *fmt, ...) void * mqttLoadRTLM(sl_config *cfg, int modtype) { - char *str; + const char *str; void *rtlm = NULL; if (!cfg) return NULL; - str = CFG(cfg_GetAttribute(cfg, CFG("mqttd"), CFG(modtype ? "pub_file" : "acc_file"))); + str = (const char*) CFG(cfg_GetAttribute(cfg, CFG("mqttd"), CFG(modtype ? "pub_file" : "acc_file"))); if (!str) { mqttLog("Error:: RTL module not found\n"); return NULL; @@ -74,12 +74,12 @@ mqttUnloadRTLM(int modtype) inline int mqttMkDir(sl_config *cfg) { - char *str; + const char *str; if (!cfg) return -1; - str = CFG(cfg_GetAttribute(cfg, CFG("mqttd"), CFG("statedir"))); + str = (const char*) cfg_GetAttribute(cfg, CFG("mqttd"), CFG("statedir")); if (!str) return -1;