--- mqtt/src/Attic/dbmqtt.c 2011/11/23 00:42:16 1.1.2.2 +++ mqtt/src/Attic/dbmqtt.c 2011/11/23 08:09:40 1.1.2.3 @@ -15,12 +15,12 @@ sqlite3 * mqtt_db_open(sl_config *cfg, int modtype) { sqlite3 *sql = NULL; - char *str; + const char *str = NULL; if (!cfg) return NULL; - str = CFG(cfg_GetAttribute(cfg, CFG(modtype ? "mqtt_pub" : "mqtt_acc"), CFG("name"))); + str = (const char*) cfg_GetAttribute(cfg, (modtype ? CFG("mqtt_pub") : CFG("mqtt_acc")), CFG("name")); if (!str) { mqtt_db_log("Error:: Unknown database name ...\n"); return NULL;