/[lwip]/lwip/src/core/memp.c
ViewVC logotype

Diff of /lwip/src/core/memp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17.2.6 by likewise, Fri Nov 14 09:42:51 2003 UTC revision 1.17.2.7 by jani, Wed Nov 19 09:34:53 2003 UTC
# Line 220  memp_malloc(memp_t type) Line 220  memp_malloc(memp_t type)
220       ((u32_t)MEM_ALIGN((u8_t *)memp + sizeof(struct memp)) % MEM_ALIGNMENT) == 0);       ((u32_t)MEM_ALIGN((u8_t *)memp + sizeof(struct memp)) % MEM_ALIGNMENT) == 0);
221    
222      mem = MEM_ALIGN((u8_t *)memp + sizeof(struct memp));      mem = MEM_ALIGN((u8_t *)memp + sizeof(struct memp));
     /* initialize memp memory with zeroes */  
     memset(mem, 0, memp_sizes[type]);    
223      return mem;      return mem;
224    } else {    } else {
225      LWIP_DEBUGF(MEMP_DEBUG | 2, ("memp_malloc: out of memory in pool %d\n", type));      LWIP_DEBUGF(MEMP_DEBUG | 2, ("memp_malloc: out of memory in pool %d\n", type));

Legend:
Removed from v.1.17.2.6  
changed lines
  Added in v.1.17.2.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26