Diff for /libaitsess/src/Attic/mem.c between versions 1.1.2.9 and 1.1.2.10

version 1.1.2.9, 2012/02/28 12:05:58 version 1.1.2.10, 2012/02/28 12:44:18
Line 277  mpool_realloc(mpool_t * __restrict mp, void * __restri Line 277  mpool_realloc(mpool_t * __restrict mp, void * __restri
   
         /* quota */          /* quota */
         if (mp->pool_quota.max &&           if (mp->pool_quota.max && 
                        (mp->pool_quota.curr + (newsize - osize)) > mp->pool_quota.max) {                        (mp->pool_quota.curr + ((u_long) newsize - osize)) > mp->pool_quota.max) {
                 sess_SetErr(ENOMEM, "Max.allocate memory quota has been reached");                  sess_SetErr(ENOMEM, "Max.allocate memory quota has been reached");
                 mpool_unlock(mp);                  mpool_unlock(mp);
                 return NULL;                  return NULL;
Line 322  mpool_realloc(mpool_t * __restrict mp, void * __restri Line 322  mpool_realloc(mpool_t * __restrict mp, void * __restri
                         m->alloc_mem = (u_int*) p;                          m->alloc_mem = (u_int*) p;
         }          }
         /* quota */          /* quota */
        mp->pool_quota.curr += (newsize - osize);        mp->pool_quota.curr += (u_long) newsize - osize;
   
         m->alloc_mem[0] = newsize / sizeof(u_int);          m->alloc_mem[0] = newsize / sizeof(u_int);
         m->alloc_mem[1] = MEM_MAGIC_START;          m->alloc_mem[1] = MEM_MAGIC_START;

Removed from v.1.1.2.9  
changed lines
  Added in v.1.1.2.10


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