Diff for /mqtt/example/Attic/test.c between versions 1.1.2.3 and 1.1.2.6

version 1.1.2.3, 2011/11/22 12:02:17 version 1.1.2.6, 2011/11/28 13:19:38
Line 10  main(int argc, char **argv) Line 10  main(int argc, char **argv)
 {  {
         mqtt_subscr_t *v, *p;          mqtt_subscr_t *v, *p;
         u_char qoses[] = { 1, 0, 2, 6, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0 };          u_char qoses[] = { 1, 0, 2, 6, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0 };
           register int i;
   
         if (argc < 2)          if (argc < 2)
                 return 1;                  return 1;
   
         v = mqtt_str2sub((const char**) argv, 0, qoses);          v = mqtt_str2sub((const char**) argv, 0, qoses);
        for (p = v; p->sub_data; p++)        for (p = v; p->sub_topic._base; p++)
                printf("msb=%hhd lsb=%hhd val=%hd %s qos=%d\n",                 printf("size=%hd %s qos=%d\n", p->sub_topic._size, p->sub_topic._base, p->sub_ret);
                                p->sub_sb.sb.m, p->sub_sb.sb.l, p->sub_sb.val, p->sub_data, p->sub_qos);        mqtt_subFree(&v);
        mqtt_freeSub(&v, 42);
         v = mqtt_subAlloc(10);
         for (p = v; p->sub_topic._base; p++)
                 printf("i=%d\n", i++);
         mqtt_subFree(&v);
   
         return 0;          return 0;
 }  }

Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.6


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