]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Fixed bug #27105: "realloc() cannot replace mem_realloc()" by making mem_realloc...
authorgoldsimon <goldsimon>
Tue, 28 Jul 2009 17:18:46 +0000 (17:18 +0000)
committergoldsimon <goldsimon>
Tue, 28 Jul 2009 17:18:46 +0000 (17:18 +0000)
CHANGELOG
src/include/lwip/mem.h

index abddb649a0dee03ff0f92d62766d074d8fba195c..57e54a0bc4d0b2cf34a8d1517b67e488ded10266 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -116,6 +116,9 @@ HISTORY
 
   ++ Bugfixes:
 
+  2009-07-28 Simon Goldschmidt
+  * mem.h: Fixed bug #27105: "realloc() cannot replace mem_realloc()"s
+
   2009-07-27 Kieran Mansley
   * api.h api_msg.h netdb.h sockets.h: add missing #include directives
 
index ff9521f3103f95cf90f53dc8e7b881daf65f6c2d..327c2049ffabe0dfa0f8300e544962a03c36cd80 100644 (file)
@@ -59,7 +59,11 @@ typedef size_t mem_size_t;
 #define mem_calloc calloc
 #endif
 #ifndef mem_realloc
-#define mem_realloc realloc
+static void *mem_realloc(void *mem, mem_size_t size)
+{
+  LWIP_UNUSED_ARG(size);
+  return mem;
+}
 #endif
 #else /* MEM_LIBC_MALLOC */