Minor code style fixes

This commit is contained in:
Adam Dunkels 2011-09-02 08:16:50 +02:00
parent 9ce61940c0
commit 9e30f0f7c6

View file

@ -431,7 +431,6 @@ uip_init(void)
} }
#endif /* UIP_UDP */ #endif /* UIP_UDP */
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#if UIP_TCP && UIP_ACTIVE_OPEN #if UIP_TCP && UIP_ACTIVE_OPEN
struct uip_conn * struct uip_conn *
@ -503,8 +502,6 @@ uip_connect(uip_ipaddr_t *ripaddr, u16_t rport)
return conn; return conn;
} }
#endif /* UIP_TCP && UIP_ACTIVE_OPEN */ #endif /* UIP_TCP && UIP_ACTIVE_OPEN */
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#if UIP_UDP #if UIP_UDP
struct uip_udp_conn * struct uip_udp_conn *
@ -526,7 +523,6 @@ uip_udp_new(const uip_ipaddr_t *ripaddr, u16_t rport)
} }
} }
conn = 0; conn = 0;
for(c = 0; c < UIP_UDP_CONNS; ++c) { for(c = 0; c < UIP_UDP_CONNS; ++c) {
if(uip_udp_conns[c].lport == 0) { if(uip_udp_conns[c].lport == 0) {
@ -551,8 +547,6 @@ uip_udp_new(const uip_ipaddr_t *ripaddr, u16_t rport)
return conn; return conn;
} }
#endif /* UIP_UDP */ #endif /* UIP_UDP */
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#if UIP_TCP #if UIP_TCP
void void
@ -565,8 +559,6 @@ uip_unlisten(u16_t port)
} }
} }
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
void void
uip_listen(u16_t port) uip_listen(u16_t port)
@ -581,7 +573,6 @@ uip_listen(u16_t port)
#endif #endif
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#if UIP_CONF_IPV6_REASSEMBLY #if UIP_CONF_IPV6_REASSEMBLY
#define UIP_REASS_BUFSIZE (UIP_BUFSIZE - UIP_LLH_LEN) #define UIP_REASS_BUFSIZE (UIP_BUFSIZE - UIP_LLH_LEN)
@ -814,7 +805,8 @@ uip_add_rcv_nxt(u16_t n)
* \brief Process the options in Destination and Hop By Hop extension headers * \brief Process the options in Destination and Hop By Hop extension headers
*/ */
static u8_t static u8_t
ext_hdr_options_process() { ext_hdr_options_process(void)
{
/* /*
* Length field in the extension header: length of th eheader in units of * Length field in the extension header: length of th eheader in units of
* 8 bytes, excluding the first 8 bytes * 8 bytes, excluding the first 8 bytes