Skip to content

Commit b91836a

Browse files
committed
fix astyle convention
1 parent 1a7288d commit b91836a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

features/lwipstack/LWIPStack.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,22 +231,22 @@ nsapi_error_t LWIP::socket_open(nsapi_socket_t *handle, nsapi_protocol_t proto)
231231
}
232232

233233
enum netconn_type netconntype;
234-
if ( proto == NSAPI_TCP) {
235-
netconntype = NETCONN_TCP;
236-
} else if ( proto == NSAPI_UDP ) {
237-
netconntype = NETCONN_UDP;
234+
if (proto == NSAPI_TCP) {
235+
netconntype = NETCONN_TCP;
236+
} else if (proto == NSAPI_UDP) {
237+
netconntype = NETCONN_UDP;
238238
} else {
239-
netconntype = NETCONN_RAW;
239+
netconntype = NETCONN_RAW;
240240
}
241241

242242
#if LWIP_IPV6
243243
// Enable IPv6 (or dual-stack)
244244
netconntype = (enum netconn_type)(netconntype | NETCONN_TYPE_IPV6);
245245
#endif
246246

247-
if (proto == NSAPI_ICMP ) {
247+
if (proto == NSAPI_ICMP) {
248248
s->conn = netconn_new_with_proto_and_callback(NETCONN_RAW,
249-
(u8_t)IP_PROTO_ICMP, &LWIP::socket_callback);
249+
(u8_t)IP_PROTO_ICMP, &LWIP::socket_callback);
250250
} else {
251251
s->conn = netconn_new_with_callback(netconntype, &LWIP::socket_callback);
252252
}

0 commit comments

Comments
 (0)