|
|
| version 1.1.2.2, 2011/11/23 01:07:18 | version 1.1.2.3, 2011/11/23 08:09:40 |
|---|---|
| Line 25 mqttLog(const char *fmt, ...) | Line 25 mqttLog(const char *fmt, ...) |
| void * | void * |
| mqttLoadRTLM(sl_config *cfg, int modtype) | mqttLoadRTLM(sl_config *cfg, int modtype) |
| { | { |
| char *str; | const char *str; |
| void *rtlm = NULL; | void *rtlm = NULL; |
| if (!cfg) | if (!cfg) |
| return NULL; | 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) { | if (!str) { |
| mqttLog("Error:: RTL module not found\n"); | mqttLog("Error:: RTL module not found\n"); |
| return NULL; | return NULL; |
| Line 74 mqttUnloadRTLM(int modtype) | Line 74 mqttUnloadRTLM(int modtype) |
| inline int | inline int |
| mqttMkDir(sl_config *cfg) | mqttMkDir(sl_config *cfg) |
| { | { |
| char *str; | const char *str; |
| if (!cfg) | if (!cfg) |
| return -1; | return -1; |
| str = CFG(cfg_GetAttribute(cfg, CFG("mqttd"), CFG("statedir"))); | str = (const char*) cfg_GetAttribute(cfg, CFG("mqttd"), CFG("statedir")); |
| if (!str) | if (!str) |
| return -1; | return -1; |