From 0ce27296aa24b1fe8cea4dee32f16c461016add0 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 22 Jun 2007 20:23:26 +0000 Subject: [PATCH] ASSERTS were using old MEM_ALIGN define, therefore, was not compilable without LWIP_NOASSERT defined --- src/core/mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/mem.c b/src/core/mem.c index 99faf2ce..ca947a74 100644 --- a/src/core/mem.c +++ b/src/core/mem.c @@ -109,12 +109,12 @@ mem_free(void *rmem) struct mem_helper *hmem = (struct mem_helper*)rmem; LWIP_ASSERT("rmem != NULL", (rmem != NULL)); - LWIP_ASSERT("rmem == MEM_ALIGN(rmem)", (rmem == MEM_ALIGN(rmem))); + LWIP_ASSERT("rmem == MEM_ALIGN(rmem)", (rmem == LWIP_MEM_ALIGN(rmem))); hmem--; LWIP_ASSERT("hmem != NULL", (hmem != NULL)); - LWIP_ASSERT("hmem == MEM_ALIGN(hmem)", (hmem == MEM_ALIGN(hmem))); + LWIP_ASSERT("hmem == MEM_ALIGN(hmem)", (hmem == LWIP_MEM_ALIGN(hmem))); LWIP_ASSERT("hmem->poolnr < MEMP_MAX", (hmem->poolnr < MEMP_MAX)); memp_free(hmem->poolnr, hmem);