Skip to content

Commit d92a946

Browse files
committed
fix astyle convention
1 parent 0b5dea5 commit d92a946

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

features/lwipstack/LWIPStack.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,13 @@ 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-
{
234+
if ( proto == NSAPI_TCP) {
236235
netconntype = NETCONN_TCP;
237236
}
238-
else if ( proto == NSAPI_UDP )
239-
{
237+
else if ( proto == NSAPI_UDP ) {
240238
netconntype = NETCONN_UDP;
241239
}
242-
else
243-
{
240+
else {
244241
netconntype = NETCONN_RAW;
245242
}
246243

@@ -249,13 +246,11 @@ nsapi_error_t LWIP::socket_open(nsapi_socket_t *handle, nsapi_protocol_t proto)
249246
netconntype = (enum netconn_type)(netconntype | NETCONN_TYPE_IPV6);
250247
#endif
251248

252-
if (proto == NSAPI_ICMP )
253-
{
249+
if (proto == NSAPI_ICMP ) {
254250
s->conn = netconn_new_with_proto_and_callback(NETCONN_RAW,
255251
(u8_t)IP_PROTO_ICMP, &LWIP::socket_callback);
256252
}
257-
else
258-
{
253+
else {
259254
s->conn = netconn_new_with_callback(netconntype, &LWIP::socket_callback);
260255
}
261256

0 commit comments

Comments
 (0)