From 5d99549aca261d40abf3e0d7180c2bddca3522b3 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 12 Apr 2014 13:09:48 -0600 Subject: Make sure that there is one space between while and condition --- apps/netutils/dnsclient/dns_socket.c | 6 +++--- apps/netutils/ftpc/ftpc_transfer.c | 1 - apps/netutils/uiplib/uiplib.c | 5 +++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/netutils') diff --git a/apps/netutils/dnsclient/dns_socket.c b/apps/netutils/dnsclient/dns_socket.c index c61032685..002d48674 100644 --- a/apps/netutils/dnsclient/dns_socket.c +++ b/apps/netutils/dnsclient/dns_socket.c @@ -188,13 +188,13 @@ static FAR unsigned char *dns_parse_name(FAR unsigned char *query) { n = *query++; - while(n > 0) + while (n > 0) { ++query; --n; } } - while(*query != 0); + while (*query != 0); return query + 1; } @@ -247,7 +247,7 @@ static int dns_send_query(int sockfd, FAR const char *name, *nptr = n; } - while(*nameptr != 0); + while (*nameptr != 0); memcpy(query, endquery, 5); diff --git a/apps/netutils/ftpc/ftpc_transfer.c b/apps/netutils/ftpc/ftpc_transfer.c index 0eb9130f3..46ec88ec9 100644 --- a/apps/netutils/ftpc/ftpc_transfer.c +++ b/apps/netutils/ftpc/ftpc_transfer.c @@ -426,7 +426,6 @@ int ftpc_xfrabort(FAR struct ftpc_session_s *session, FAR FILE *stream) /* Read remaining bytes from connection */ while (stream && fread(session->buffer, 1, CONFIG_FTP_BUFSIZE, stream) > 0); - while(stream && fread(session->buffer, 1, CONFIG_FTP_BUFSIZE, stream) > 0) /* Get the ABORt reply */ diff --git a/apps/netutils/uiplib/uiplib.c b/apps/netutils/uiplib/uiplib.c index 8106789c7..c8051233e 100644 --- a/apps/netutils/uiplib/uiplib.c +++ b/apps/netutils/uiplib/uiplib.c @@ -92,8 +92,9 @@ bool uiplib_ipaddrconv(const char *addrstr, uint8_t *ipaddr) } ++addrstr; } - while(c != '.' && c != 0); + while (c != '.' && c != 0); } + return true; } @@ -149,7 +150,7 @@ bool uiplib_hwmacconv(const char *hwstr, uint8_t *hw) ++hwstr; } - while(c != ':' && c != 0); + while (c != ':' && c != 0); } return true; -- cgit v1.2.3