fix astyle convention

pull/10978/head
Balaji 2019-08-27 17:30:36 -07:00
parent 1a7288d220
commit b91836a94d
1 changed files with 7 additions and 7 deletions

View File

@ -231,12 +231,12 @@ nsapi_error_t LWIP::socket_open(nsapi_socket_t *handle, nsapi_protocol_t proto)
} }
enum netconn_type netconntype; enum netconn_type netconntype;
if ( proto == NSAPI_TCP) { if (proto == NSAPI_TCP) {
netconntype = NETCONN_TCP; netconntype = NETCONN_TCP;
} else if ( proto == NSAPI_UDP ) { } else if (proto == NSAPI_UDP) {
netconntype = NETCONN_UDP; netconntype = NETCONN_UDP;
} else { } else {
netconntype = NETCONN_RAW; netconntype = NETCONN_RAW;
} }
#if LWIP_IPV6 #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); netconntype = (enum netconn_type)(netconntype | NETCONN_TYPE_IPV6);
#endif #endif
if (proto == NSAPI_ICMP ) { if (proto == NSAPI_ICMP) {
s->conn = netconn_new_with_proto_and_callback(NETCONN_RAW, 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 { } else {
s->conn = netconn_new_with_callback(netconntype, &LWIP::socket_callback); s->conn = netconn_new_with_callback(netconntype, &LWIP::socket_callback);
} }