--- mqtt/src/mqttd.c 2011/12/01 08:15:25 1.1.1.1.2.8 +++ mqtt/src/mqttd.c 2011/12/09 09:53:54 1.1.1.1.2.10 @@ -1,10 +1,12 @@ #include "global.h" +#include "mqttd.h" #include "rtlm.h" #include "utils.h" #include "daemon.h" sl_config cfg; +sessions_t Sessions; sched_root_task_t *root; extern char compiled[], compiledby[], compilehost[]; static char szCfgName[MAXPATHLEN]; @@ -58,6 +60,8 @@ main(int argc, char **argv) int sock = -1, ret = 0; struct passwd *pass; struct sigaction sa; + + TAILQ_INIT(&Sessions); strlcpy(szCfgName, DEFAULT_CONFIG, sizeof szCfgName); while ((ch = getopt(argc, argv, "hvbc:")) != -1)