mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +00:00
Added #ifdef around label (yes, ugly) to avoid compiler warning with UIP_UDP == 0
This commit is contained in:
parent
6e228f7a79
commit
b003f32e27
@ -41,7 +41,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the uIP TCP/IP stack.
|
* 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. */
|
/* Calculate TCP checksum. */
|
||||||
BUF->tcpchksum = 0;
|
BUF->tcpchksum = 0;
|
||||||
BUF->tcpchksum = ~(uip_tcpchksum());
|
BUF->tcpchksum = ~(uip_tcpchksum());
|
||||||
|
|
||||||
|
#if UIP_UDP
|
||||||
ip_send_nolen:
|
ip_send_nolen:
|
||||||
|
#endif /* UIP_UDP */
|
||||||
|
|
||||||
#if UIP_CONF_IPV6
|
#if UIP_CONF_IPV6
|
||||||
BUF->vtc = 0x60;
|
BUF->vtc = 0x60;
|
||||||
|
Loading…
Reference in New Issue
Block a user