Diff for /libaitio/src/Attic/vars.c between versions 1.2.2.5 and 1.4

version 1.2.2.5, 2011/12/12 15:22:20 version 1.4, 2012/02/02 21:32:42
Line 429  io_map2vars(u_char *buf, int buflen, int vnum, int zcp Line 429  io_map2vars(u_char *buf, int buflen, int vnum, int zcp
  * return: =NULL error or !=NULL allocated array   * return: =NULL error or !=NULL allocated array
  */   */
 inline array_t *  inline array_t *
io_allocVars(u_int varnum)io_allocVars(int varnum)
 {  {
         array_t *arr;          array_t *arr;
         register int i;          register int i;
Line 487  io_freeVars(array_t ** __restrict vars) Line 487  io_freeVars(array_t ** __restrict vars)
         io_clrVars(*vars);          io_clrVars(*vars);
         io_arrayFree(*vars);          io_arrayFree(*vars);
         io_arrayDestroy(vars);          io_arrayDestroy(vars);
   }
   
   /*
    * io_allocVar() Allocate memory for variable
    * return: NULL error or new variable, after use free variable with io_freeVar()
    */
   inline ait_val_t *
   io_allocVar(void)
   {
           ait_val_t *v = NULL;
   
           v = malloc(sizeof(ait_val_t));
           if (!v) {
                   LOGERR;
                   return NULL;
           } else
                   memset(v, 0, sizeof(ait_val_t));
           v->val_type = empty;
   
           return v;
   }
   
   /*
    * io_freeVar() Free allocated memory for variable
    * @val = Variable
    * return: none
    */
   inline void
   io_freeVar(ait_val_t * __restrict val)
   {
           if (val) {
                   AIT_FREE_VAL(val);
                   free(val);
                   val = NULL;
           }
 }  }

Removed from v.1.2.2.5  
changed lines
  Added in v.1.4


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