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

version 1.1.2.3, 2011/11/22 12:02:17 version 1.1.2.4, 2011/11/22 13:00:33
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;
Line 18  main(int argc, char **argv) Line 19  main(int argc, char **argv)
         for (p = v; p->sub_data; p++)          for (p = v; p->sub_data; p++)
                 printf("msb=%hhd lsb=%hhd val=%hd %s qos=%d\n",                   printf("msb=%hhd lsb=%hhd val=%hd %s qos=%d\n", 
                                 p->sub_sb.sb.m, p->sub_sb.sb.l, p->sub_sb.val, p->sub_data, p->sub_qos);                                  p->sub_sb.sb.m, p->sub_sb.sb.l, p->sub_sb.val, p->sub_data, p->sub_qos);
        mqtt_freeSub(&v, 42);        mqtt_subFree(&v, 42);
 
         v = mqtt_subAlloc(10);
         for (p = v; p->sub_data; p++)
                 printf("i=%d\n", i++);
         mqtt_subFree(&v, 42);
   
         return 0;          return 0;
 }  }

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


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