From 4e44c2b99378fb258ef259a4f14047b4409ad146 Mon Sep 17 00:00:00 2001 From: likewise Date: Thu, 11 Mar 2004 19:23:07 +0000 Subject: [PATCH] Added missing #if LWIP_DHCP #endif pair. --- CHANGELOG | 5 +++++ src/core/dhcp.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 225c568b..4f58d375 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -9,6 +9,11 @@ HISTORY (active STABLE-0_7 branch) + ++ Bug fixes: + + 2004-03-11 Leon Woestenberg + * dhcp.c: Added missing #if LWIP_DHCP #endif pair. + (STABLE-0_7_1) ++ Bug fixes: diff --git a/src/core/dhcp.c b/src/core/dhcp.c index b554e26a..e2caa8b1 100644 --- a/src/core/dhcp.c +++ b/src/core/dhcp.c @@ -6,8 +6,8 @@ /* * - * Copyright (c) 2001-2003 Leon Woestenberg - * Copyright (c) 2001-2003 Axon Digital Design B.V., The Netherlands. + * Copyright (c) 2001-2004 Leon Woestenberg + * Copyright (c) 2001-2004 Axon Digital Design B.V., The Netherlands. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, @@ -67,6 +67,8 @@ * to remove the DHCP client. * */ +#ifdef LWIP_DHCP /* don't build if not configured for use in lwipopt.h */ + #include "lwip/stats.h" #include "lwip/mem.h" #include "lwip/udp.h" @@ -1418,3 +1420,5 @@ static u32_t dhcp_get_option_long(u8_t *ptr) LWIP_DEBUGF(DHCP_DEBUG, ("option long value=%lu\n", value)); return value; } + +#endif /* LWIP_DHCP */