From 9e30f0f7c6017f54f4cc37f66616c958b1b3a2d5 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Fri, 2 Sep 2011 08:16:50 +0200 Subject: [PATCH] Minor code style fixes --- core/net/uip6.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/core/net/uip6.c b/core/net/uip6.c index 5e7cdc6d9..8da3ad856 100644 --- a/core/net/uip6.c +++ b/core/net/uip6.c @@ -431,7 +431,6 @@ uip_init(void) } #endif /* UIP_UDP */ } - /*---------------------------------------------------------------------------*/ #if UIP_TCP && UIP_ACTIVE_OPEN struct uip_conn * @@ -503,8 +502,6 @@ uip_connect(uip_ipaddr_t *ripaddr, u16_t rport) return conn; } #endif /* UIP_TCP && UIP_ACTIVE_OPEN */ - - /*---------------------------------------------------------------------------*/ #if UIP_UDP struct uip_udp_conn * @@ -526,7 +523,6 @@ uip_udp_new(const uip_ipaddr_t *ripaddr, u16_t rport) } } - conn = 0; for(c = 0; c < UIP_UDP_CONNS; ++c) { if(uip_udp_conns[c].lport == 0) { @@ -551,8 +547,6 @@ uip_udp_new(const uip_ipaddr_t *ripaddr, u16_t rport) return conn; } #endif /* UIP_UDP */ - - /*---------------------------------------------------------------------------*/ #if UIP_TCP void @@ -565,8 +559,6 @@ uip_unlisten(u16_t port) } } } - - /*---------------------------------------------------------------------------*/ void uip_listen(u16_t port) @@ -581,7 +573,6 @@ uip_listen(u16_t port) #endif /*---------------------------------------------------------------------------*/ - #if UIP_CONF_IPV6_REASSEMBLY #define UIP_REASS_BUFSIZE (UIP_BUFSIZE - UIP_LLH_LEN) @@ -814,15 +805,16 @@ uip_add_rcv_nxt(u16_t n) * \brief Process the options in Destination and Hop By Hop extension headers */ 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 * 8 bytes, excluding the first 8 bytes * length field in an option : the length of data in the option */ uip_ext_opt_offset = 2; - while(uip_ext_opt_offset < ((UIP_EXT_BUF->len << 3) + 8)) { - switch (UIP_EXT_HDR_OPT_BUF->type) { + while(uip_ext_opt_offset < ((UIP_EXT_BUF->len << 3) + 8)) { + switch(UIP_EXT_HDR_OPT_BUF->type) { /* * for now we do not support any options except padding ones * PAD1 does not make sense as the header must be 8bytes aligned,