Diff for /mqtt/src/Attic/mqtt.c between versions 1.1.1.1.2.7 and 1.1.1.1.2.8

version 1.1.1.1.2.7, 2011/11/23 01:07:18 version 1.1.1.1.2.8, 2011/11/23 08:50:03
Line 15  main(int argc, char **argv) Line 15  main(int argc, char **argv)
                 return 1;                  return 1;
         }          }
         if (!mqttLoadRTLM(&cfg, 0)) {          if (!mqttLoadRTLM(&cfg, 0)) {
                printf("Error:: Can't load RTL module\n");                printf("Error:: Can't load RTL ACC module\n");
                 UnloadConfig(&cfg);
                 return 2;                  return 2;
         }          }
           if (!mqttLoadRTLM(&cfg, 1)) {
                   printf("Error:: Can't load RTL PUB module\n");
                   mqttUnloadRTLM(0);
                   UnloadConfig(&cfg);
                   return 2;
           }
   
        acc = mqttOpenDB(&cfg, 0);        acc = mqttOpenACC(&cfg);
         if (!acc)          if (!acc)
                 goto end;                  goto end;
        pub = mqttOpenDB(&cfg, 1);        pub = mqttOpenPUB(&cfg);
         if (!pub)          if (!pub)
                 goto end;                  goto end;
   
Line 34  main(int argc, char **argv) Line 41  main(int argc, char **argv)
         printf("success!\n");          printf("success!\n");
   
 end:  end:
        mqttCloseDB(pub);        mqttClosePUB(pub);
        mqttCloseDB(acc);        mqttCloseACC(acc);
         mqttUnloadRTLM(1);
         mqttUnloadRTLM(0);          mqttUnloadRTLM(0);
         UnloadConfig(&cfg);          UnloadConfig(&cfg);
         return 0;          return 0;

Removed from v.1.1.1.1.2.7  
changed lines
  Added in v.1.1.1.1.2.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>