mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			fix astyle convention
							parent
							
								
									1a7288d220
								
							
						
					
					
						commit
						b91836a94d
					
				| 
						 | 
				
			
			@ -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);
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue