diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-12 13:09:48 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-12 13:09:48 -0600 |
commit | 5d99549aca261d40abf3e0d7180c2bddca3522b3 (patch) | |
tree | 8602dccf7672ec2af9de95c9b005fea2e9a37243 /apps/netutils | |
parent | 5fbbc21f13770cc35c3e61e3109c125d03f172eb (diff) | |
download | nuttx-5d99549aca261d40abf3e0d7180c2bddca3522b3.tar.gz nuttx-5d99549aca261d40abf3e0d7180c2bddca3522b3.tar.bz2 nuttx-5d99549aca261d40abf3e0d7180c2bddca3522b3.zip |
Make sure that there is one space between while and condition
Diffstat (limited to 'apps/netutils')
-rw-r--r-- | apps/netutils/dnsclient/dns_socket.c | 6 | ||||
-rw-r--r-- | apps/netutils/ftpc/ftpc_transfer.c | 1 | ||||
-rw-r--r-- | apps/netutils/uiplib/uiplib.c | 5 |
3 files changed, 6 insertions, 6 deletions
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; |