[syslinux:lwip] lwip: In mem.h define mem_realloc as static inline

syslinux-bot for Eric W. Biederman ebiederm at xmission.com
Fri Apr 22 20:05:48 PDT 2011


Commit-ID:  aef1de9230f9d0f3d52c2243aab6881e7e6c238d
Gitweb:     http://syslinux.zytor.com/commit/aef1de9230f9d0f3d52c2243aab6881e7e6c238d
Author:     Eric W. Biederman <ebiederm at xmission.com>
AuthorDate: Sat, 9 Apr 2011 05:28:31 -0700
Committer:  Eric W. Biederman <ebiederm at xmission.com>
CommitDate: Tue, 12 Apr 2011 14:40:53 -0700

lwip:  In mem.h define mem_realloc as static inline

The intent was clearly for the compiler to inline
mem_realloc or else the defintion would have been placed
in a C file somewhere.   gcc complains and since -Werr
is set the build fails when the function is just static.
So make the function static inline.

Signed-off-by: Eric W. Biederman <ebiederm at xmission.com>


---
 core/lwip/src/include/lwip/mem.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core/lwip/src/include/lwip/mem.h b/core/lwip/src/include/lwip/mem.h
index 327c204..8212ec8 100644
--- a/core/lwip/src/include/lwip/mem.h
+++ b/core/lwip/src/include/lwip/mem.h
@@ -59,7 +59,7 @@ typedef size_t mem_size_t;
 #define mem_calloc calloc
 #endif
 #ifndef mem_realloc
-static void *mem_realloc(void *mem, mem_size_t size)
+static inline void *mem_realloc(void *mem, mem_size_t size)
 {
   LWIP_UNUSED_ARG(size);
   return mem;



More information about the Syslinux-commits mailing list