Make sure that there is one space between while and condition

This commit is contained in:
Gregory Nutt
2014-04-12 13:09:48 -06:00
parent 17702dbad2
commit bb851fc8b5
9 changed files with 18 additions and 13 deletions

View File

@@ -174,18 +174,22 @@ int uip_main(int argc, char *argv[])
struct dhcpc_state ds;
(void)dhcpc_request(handle, &ds);
uip_sethostaddr("eth1", &ds.ipaddr);
if (ds.netmask.s_addr != 0)
{
uip_setnetmask("eth0", &ds.netmask);
}
if (ds.default_router.s_addr != 0)
{
uip_setdraddr("eth0", &ds.default_router);
}
if (ds.dnsaddr.s_addr != 0)
{
dns_setserver(&ds.dnsaddr);
}
dhcpc_close(handle);
printf("IP: %s\n", inet_ntoa(ds.ipaddr));
}
@@ -206,5 +210,6 @@ int uip_main(int argc, char *argv[])
fflush(stdout);
#endif
}
return 0;
}

View File

@@ -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 */

View File

@@ -94,6 +94,7 @@ bool uiplib_ipaddrconv(const char *addrstr, uint8_t *ipaddr)
}
while (c != '.' && c != 0);
}
return true;
}