From b003f32e27ca7f508a565b98bdf4131f3e94deb0 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 28 Nov 2007 12:53:07 +0000 Subject: [PATCH] Added #ifdef around label (yes, ugly) to avoid compiler warning with UIP_UDP == 0 --- core/net/uip.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/net/uip.c b/core/net/uip.c index 8bf516cf3..2dcfa1e21 100644 --- a/core/net/uip.c +++ b/core/net/uip.c @@ -41,7 +41,7 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: uip.c,v 1.8 2007/04/04 11:37:40 bg- Exp $ + * $Id: uip.c,v 1.9 2007/11/28 12:53:07 adamdunkels Exp $ * */ @@ -1827,8 +1827,10 @@ uip_process(u8_t flag) /* Calculate TCP checksum. */ BUF->tcpchksum = 0; BUF->tcpchksum = ~(uip_tcpchksum()); - + +#if UIP_UDP ip_send_nolen: +#endif /* UIP_UDP */ #if UIP_CONF_IPV6 BUF->vtc = 0x60;