mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-04 08:55:09 +00:00
Fix formatting issues in net_sockets.c
This commit is contained in:
parent
36540ff741
commit
e4ac5428f3
@ -133,7 +133,8 @@ void mbedtls_net_init( mbedtls_net_context *ctx )
|
|||||||
/*
|
/*
|
||||||
* Initiate a TCP connection with host:port and the given protocol
|
* Initiate a TCP connection with host:port and the given protocol
|
||||||
*/
|
*/
|
||||||
int mbedtls_net_connect( mbedtls_net_context *ctx, const char *host, const char *port, int proto )
|
int mbedtls_net_connect( mbedtls_net_context *ctx, const char *host,
|
||||||
|
const char *port, int proto )
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
struct addrinfo hints, *addr_list, *cur;
|
struct addrinfo hints, *addr_list, *cur;
|
||||||
@ -322,7 +323,7 @@ int mbedtls_net_accept( mbedtls_net_context *bind_ctx,
|
|||||||
{
|
{
|
||||||
/* TCP: actual accept() */
|
/* TCP: actual accept() */
|
||||||
ret = client_ctx->fd = (int) accept( bind_ctx->fd,
|
ret = client_ctx->fd = (int) accept( bind_ctx->fd,
|
||||||
(struct sockaddr *) &client_addr, &n );
|
(struct sockaddr *) &client_addr, &n );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user