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

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

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

revision 1.1.1.1 by likewise, Sat Oct 19 13:00:33 2002 UTC revision 1.2 by jani, Thu Nov 14 12:20:37 2002 UTC
# Line 266  mem_realloc(void *rmem, mem_size_t newsi Line 266  mem_realloc(void *rmem, mem_size_t newsi
266           (u8_t *)rmem < (u8_t *)ram_end);           (u8_t *)rmem < (u8_t *)ram_end);
267        
268    if((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) {    if((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) {
269      DEBUGF(MEM_DEBUG, ("mem_free: illegal memory\n"));      DEBUGF(MEM_DEBUG, ("mem_realloc: illegal memory\n"));
270      return rmem;      return rmem;
271    }    }
272    mem = (struct mem *)((u8_t *)rmem - SIZEOF_STRUCT_MEM);    mem = (struct mem *)((u8_t *)rmem - SIZEOF_STRUCT_MEM);

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

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