From 47df9c4e6ec6402a2be1bbf11c12ca0e63a0a9fc Mon Sep 17 00:00:00 2001 From: Marco Casaroli Date: Sat, 4 Jun 2016 16:47:52 -0300 Subject: [PATCH] code style --- core/net/http-socket/http-socket.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/net/http-socket/http-socket.c b/core/net/http-socket/http-socket.c index 4d78cc276..7862790ff 100644 --- a/core/net/http-socket/http-socket.c +++ b/core/net/http-socket/http-socket.c @@ -350,7 +350,7 @@ parse_url(const char *url, char *host, uint16_t *portptr, char *path) } /* check if host is null terminated */ - if (!memchr(host, 0, MAX_HOSTLEN)) { + if(!memchr(host, 0, MAX_HOSTLEN)) { return 0; } @@ -419,11 +419,11 @@ event(struct tcp_socket *tcps, void *ptr, tcp_socket_send_str(tcps, "Host: "); /* If we have IPv6 host, add the '[' and the ']' characters to the host. As in rfc2732. */ - if (memchr(host, ':', MAX_HOSTLEN)) { + if(memchr(host, ':', MAX_HOSTLEN)) { tcp_socket_send_str(tcps, "["); } tcp_socket_send_str(tcps, host); - if (memchr(host, ':', MAX_HOSTLEN)) { + if(memchr(host, ':', MAX_HOSTLEN)) { tcp_socket_send_str(tcps, "]"); } tcp_socket_send_str(tcps, "\r\n");