Make sure that there is one space after for
This commit is contained in:
parent
bb851fc8b5
commit
171db56b69
@ -171,7 +171,7 @@ int shell_session(int argc, char *argv[])
|
||||
stkmon_disp();
|
||||
#endif
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
printf(SHELL_PROMPT);
|
||||
fflush(stdout);
|
||||
|
@ -61,7 +61,7 @@ static void *thread_waiter(void *parameter)
|
||||
|
||||
printf("waiter_thread: Started\n");
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
/* Take the mutex */
|
||||
|
||||
|
@ -164,7 +164,7 @@ int shell_session(int argc, char *argv[])
|
||||
printf("uIP command shell -- NuttX style\n");
|
||||
printf("Type '?' and return for help\n");
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
printf(SHELL_PROMPT);
|
||||
fflush(stdout);
|
||||
|
@ -756,7 +756,7 @@ int thttpd_main(int argc, char **argv)
|
||||
|
||||
nvdbg("Entering the main loop\n");
|
||||
(void)gettimeofday(&tv, NULL);
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
/* Do the fd watch */
|
||||
|
||||
|
@ -548,7 +548,7 @@ static int wget_base(FAR const char *url, FAR char *buffer, int buflen,
|
||||
|
||||
ws.state = WEBCLIENT_STATE_STATUSLINE;
|
||||
redirected = false;
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
ws.datend = recv(sockfd, ws.buffer, ws.buflen, 0);
|
||||
if (ws.datend < 0)
|
||||
|
@ -96,9 +96,9 @@ int httpd_fs_open(const char *name, struct httpd_fs_file *file)
|
||||
#endif
|
||||
struct httpd_fsdata_file_noconst *f;
|
||||
|
||||
for(f = (struct httpd_fsdata_file_noconst *)g_httpdfs_root;
|
||||
f != NULL;
|
||||
f = (struct httpd_fsdata_file_noconst *)f->next)
|
||||
for (f = (struct httpd_fsdata_file_noconst *)g_httpdfs_root;
|
||||
f != NULL;
|
||||
f = (struct httpd_fsdata_file_noconst *)f->next)
|
||||
{
|
||||
if (httpd_fs_strcmp(name, f->name) == 0)
|
||||
{
|
||||
@ -123,7 +123,7 @@ void httpd_fs_init(void)
|
||||
|
||||
count = (uint16_t*)malloc(g_httpd_numfiles * sizeof(uint16_t));
|
||||
|
||||
for(i = 0; i < g_httpd_numfiles; i++)
|
||||
for (i = 0; i < g_httpd_numfiles; i++)
|
||||
{
|
||||
count[i] = 0;
|
||||
}
|
||||
@ -137,7 +137,7 @@ uint16_t httpd_fs_count(char *name)
|
||||
uint16_t i;
|
||||
|
||||
i = 0;
|
||||
for(f = (struct httpd_fsdata_file_noconst *)g_httpdfs_root;
|
||||
for (f = (struct httpd_fsdata_file_noconst *)g_httpdfs_root;
|
||||
f != NULL;
|
||||
f = (struct httpd_fsdata_file_noconst *)f->next)
|
||||
{
|
||||
|
@ -391,7 +391,7 @@ static int cmd_codecs_proc(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv,
|
||||
MD5Final(mac, &ctx);
|
||||
pSrc = (char *)&mac;
|
||||
pDest = buffer;
|
||||
for(i=0;i<16;i++,pSrc++)
|
||||
for (i = 0; i < 16; i++, pSrc++)
|
||||
{
|
||||
*pDest++ = hex_chars[(*pSrc) >> 4];
|
||||
*pDest++ = hex_chars[(*pSrc) & 0x0f];
|
||||
@ -427,7 +427,7 @@ static int cmd_codecs_proc(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv,
|
||||
MD5Final(mac, &ctx);
|
||||
pSrc = (char *)&mac;
|
||||
pDest = buffer;
|
||||
for(i=0;i<16;i++,pSrc++)
|
||||
for (i = 0; i < 16; i++, pSrc++)
|
||||
{
|
||||
*pDest++ = hex_chars[(*pSrc) >> 4];
|
||||
*pDest++ = hex_chars[(*pSrc) & 0x0f];
|
||||
|
@ -619,7 +619,7 @@ int cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
|
||||
if (argc > 2)
|
||||
{
|
||||
for(i = 0; i < argc; i++)
|
||||
for (i = 0; i < argc; i++)
|
||||
{
|
||||
if (i == 1)
|
||||
{
|
||||
|
@ -123,7 +123,7 @@ int nsh_telnetlogin(struct console_stdio_s *pstate)
|
||||
|
||||
/* Loop for the configured number of retries */
|
||||
|
||||
for(i = 0; i < CONFIG_NSH_TELNET_FAILCOUNT; i++)
|
||||
for (i = 0; i < CONFIG_NSH_TELNET_FAILCOUNT; i++)
|
||||
{
|
||||
/* Ask for the login username */
|
||||
|
||||
|
@ -141,7 +141,7 @@ ssize_t readline_common(FAR struct rl_common_s *vtbl, FAR char *buf, int buflen)
|
||||
escape = 0;
|
||||
nch = 0;
|
||||
|
||||
for(;;)
|
||||
for (;;)
|
||||
{
|
||||
/* Get the next character. readline_rawgetc() returns EOF on any
|
||||
* errors or at the end of file.
|
||||
|
Loading…
x
Reference in New Issue
Block a user