From 5e66abda5054ad2e065281fce038262f663a0721 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Thu, 4 Feb 2010 21:33:51 +0000 Subject: [PATCH] Initialize lastport in all cases it is defined. --- core/net/uip.c | 6 +++--- core/net/uip6.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/net/uip.c b/core/net/uip.c index 46d85ccb8..1fd9adc7c 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.20 2010/02/04 21:14:45 adamdunkels Exp $ + * $Id: uip.c,v 1.21 2010/02/04 21:33:51 oliverschmidt Exp $ * */ @@ -378,9 +378,9 @@ uip_init(void) for(c = 0; c < UIP_CONNS; ++c) { uip_conns[c].tcpstateflags = UIP_CLOSED; } -#if UIP_ACTIVE_OPEN +#if UIP_ACTIVE_OPEN || UIP_UDP lastport = 1024; -#endif /* UIP_ACTIVE_OPEN */ +#endif /* UIP_ACTIVE_OPEN || UIP_UDP */ #if UIP_UDP for(c = 0; c < UIP_UDP_CONNS; ++c) { diff --git a/core/net/uip6.c b/core/net/uip6.c index bc731b26c..690859a1f 100644 --- a/core/net/uip6.c +++ b/core/net/uip6.c @@ -41,7 +41,7 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: uip6.c,v 1.10 2010/02/04 21:14:45 adamdunkels Exp $ + * $Id: uip6.c,v 1.11 2010/02/04 21:33:51 oliverschmidt Exp $ * */ @@ -417,9 +417,9 @@ uip_init(void) } #endif /* UIP_TCP */ -#if UIP_ACTIVE_OPEN +#if UIP_ACTIVE_OPEN || UIP_UDP lastport = 1024; -#endif /* UIP_ACTIVE_OPEN */ +#endif /* UIP_ACTIVE_OPEN || UIP_UDP */ #if UIP_UDP for(c = 0; c < UIP_UDP_CONNS; ++c) {