Diff for /libaitmqtt/src/aitmqtt.c between versions 1.3.4.1 and 1.3.4.2

version 1.3.4.1, 2022/09/13 20:12:15 version 1.3.4.2, 2022/09/13 20:16:43
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013Copyright 2004 - 2022
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 422  mqtt_subAlloc(u_short num) Line 422  mqtt_subAlloc(u_short num)
 mqtt_subscr_t *  mqtt_subscr_t *
 mqtt_subRealloc(mqtt_subscr_t ** __restrict subs, u_short num)  mqtt_subRealloc(mqtt_subscr_t ** __restrict subs, u_short num)
 {  {
        mqtt_subscr_t **ss, *s = NULL;        mqtt_subscr_t *ss, *s = NULL;
         register int i;          register int i;
   
         if (!subs)          if (!subs)
                 return NULL;                  return NULL;
   
        for (i = 0, ss = subs; *ss; i++, ss++);        for (i = 0, ss = *subs; ss; i++, ss++);
         if (i < num)          if (i < num)
                 return NULL;                  return NULL;
         if (i == num)          if (i == num)

Removed from v.1.3.4.1  
changed lines
  Added in v.1.3.4.2


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