/[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.3 by jani, Thu Nov 14 12:20:37 2002 UTC revision 1.4 by jani, Wed Dec 18 10:40:01 2002 UTC
# Line 197  memp_malloc(memp_t type) Line 197  memp_malloc(memp_t type)
197    
198      mem = MEM_ALIGN((u8_t *)memp + sizeof(struct memp));      mem = MEM_ALIGN((u8_t *)memp + sizeof(struct memp));
199      /* initialize memp memory with zeroes */      /* initialize memp memory with zeroes */
200      bzero(mem, memp_sizes[type]);            memset(mem, 0, memp_sizes[type]);  
201      return mem;      return mem;
202    } else {    } else {
203      DEBUGF(MEMP_DEBUG, ("memp_malloc: out of memory in pool %d\n", type));      DEBUGF(MEMP_DEBUG, ("memp_malloc: out of memory in pool %d\n", type));

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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