From b91836a94d1a0dba88a39239fa4f8ab694e1a296 Mon Sep 17 00:00:00 2001 From: Balaji Date: Tue, 27 Aug 2019 17:30:36 -0700 Subject: [PATCH] fix astyle convention --- features/lwipstack/LWIPStack.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/features/lwipstack/LWIPStack.cpp b/features/lwipstack/LWIPStack.cpp index dc24729eeb..bb32248f73 100644 --- a/features/lwipstack/LWIPStack.cpp +++ b/features/lwipstack/LWIPStack.cpp @@ -231,12 +231,12 @@ nsapi_error_t LWIP::socket_open(nsapi_socket_t *handle, nsapi_protocol_t proto) } enum netconn_type netconntype; - if ( proto == NSAPI_TCP) { - netconntype = NETCONN_TCP; - } else if ( proto == NSAPI_UDP ) { - netconntype = NETCONN_UDP; + if (proto == NSAPI_TCP) { + netconntype = NETCONN_TCP; + } else if (proto == NSAPI_UDP) { + netconntype = NETCONN_UDP; } else { - netconntype = NETCONN_RAW; + netconntype = NETCONN_RAW; } #if LWIP_IPV6 @@ -244,9 +244,9 @@ nsapi_error_t LWIP::socket_open(nsapi_socket_t *handle, nsapi_protocol_t proto) netconntype = (enum netconn_type)(netconntype | NETCONN_TYPE_IPV6); #endif - if (proto == NSAPI_ICMP ) { + if (proto == NSAPI_ICMP) { s->conn = netconn_new_with_proto_and_callback(NETCONN_RAW, - (u8_t)IP_PROTO_ICMP, &LWIP::socket_callback); + (u8_t)IP_PROTO_ICMP, &LWIP::socket_callback); } else { s->conn = netconn_new_with_callback(netconntype, &LWIP::socket_callback); }