--- mqtt/src/logmqtt.c 2012/01/27 15:05:38 1.2 +++ mqtt/src/logmqtt.c 2012/04/11 15:08:27 1.2.2.1 @@ -30,7 +30,7 @@ mqtt_rtlm_log(const char *fmt, ...) * return: NULL error or SQL handle */ FILE * -mqtt_rtlm_open(sl_config *cfg) +mqtt_rtlm_open(cfg_root_t *cfg) { FILE *f = NULL; const char *str = NULL; @@ -38,7 +38,7 @@ mqtt_rtlm_open(sl_config *cfg) if (!cfg) return NULL; - str = (const char*) cfg_GetAttribute(cfg, CFG("mqtt_log"), CFG("name")); + str = cfg_getAttribute(cfg, "mqtt_log", "name"); if (!str) { mqtt_rtlm_log("Error:: Unknown file name ...\n"); return NULL;