summaryrefslogtreecommitdiff
path: root/apps/netutils
diff options
context:
space:
mode:
Diffstat (limited to 'apps/netutils')
-rw-r--r--apps/netutils/dnsclient/dns_socket.c6
-rw-r--r--apps/netutils/ftpc/ftpc_transfer.c1
-rw-r--r--apps/netutils/uiplib/uiplib.c5
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;