version 1.2.2.8, 2012/05/22 14:15:04
|
version 1.2.2.9, 2012/06/01 11:39:15
|
Line 97 main(int argc, char **argv)
|
Line 97 main(int argc, char **argv)
|
for (i = 0; i < 3; i++) |
for (i = 0; i < 3; i++) |
if (!mqttLoadRTLM(&cfg, i)) { |
if (!mqttLoadRTLM(&cfg, i)) { |
printf("Error:: Can't load RTL module\n"); |
printf("Error:: Can't load RTL module\n"); |
while (i--) | mqttUnloadRTLM(acc); |
mqttUnloadRTLM(i); | mqttUnloadRTLM(pub); |
| mqttUnloadRTLM(logg); |
cfgUnloadConfig(&cfg); |
cfgUnloadConfig(&cfg); |
closelog(); |
closelog(); |
return 2; |
return 2; |
Line 119 main(int argc, char **argv)
|
Line 120 main(int argc, char **argv)
|
goto end; |
goto end; |
} |
} |
|
|
|
|
if (mqttMkDir(&cfg)) { |
if (mqttMkDir(&cfg)) { |
printf("Error:: in statedir #%d - %s\n", errno, strerror(errno)); |
printf("Error:: in statedir #%d - %s\n", errno, strerror(errno)); |
ret = 3; |
ret = 3; |
Line 190 end: /* free all resources */
|
Line 192 end: /* free all resources */
|
call.CloseLOG(logg); |
call.CloseLOG(logg); |
call.ClosePUB(pub); |
call.ClosePUB(pub); |
call.CloseACC(acc); |
call.CloseACC(acc); |
for (i = 0; i < 3; i++) | mqttUnloadRTLM(acc); |
mqttUnloadRTLM(i); | mqttUnloadRTLM(pub); |
closelog(); | mqttUnloadRTLM(logg); |
cfgUnloadConfig(&cfg); |
cfgUnloadConfig(&cfg); |
|
closelog(); |
return ret; |
return ret; |
} |
} |