--- mqtt/src/Attic/mqtt.c 2011/12/14 12:45:30 1.1.1.1.2.28 +++ mqtt/src/Attic/mqtt.c 2011/12/14 15:09:31 1.1.1.1.2.29 @@ -4,12 +4,14 @@ #include "client.h" +io_enableDEBUG; + sl_config cfg; sqlite3 *acc, *pub; FILE *logg; extern char compiled[], compiledby[], compilehost[]; static char szCfgName[MAXPATHLEN]; -int Verbose, Kill; +intptr_t Kill; struct tagArgs *args; @@ -155,7 +157,7 @@ main(int argc, char **argv) batch = 0; break; case 'v': - Verbose++; + io_incDebug; break; case 'h': default: @@ -185,7 +187,7 @@ main(int argc, char **argv) Usage(); return 1; } - VERB(1) printf("Connecting to %s:%d ...\n", io_n2addr(&args->addr, &val), io_n2port(&args->addr)); + ioVERBOSE(1) printf("Connecting to %s:%d ...\n", io_n2addr(&args->addr, &val), io_n2port(&args->addr)); if (LoadConfig(szCfgName, &cfg)) { printf("Error:: can't load #%d - %s\n", cfg_GetErrno(), cfg_GetError());