Fix a few typos.
This commit is contained in:
parent
9b548e8ea2
commit
0c615ed586
@ -89,7 +89,7 @@ int cmd_rquit(SESSION handle, int argc, char **argv)
|
|||||||
{
|
{
|
||||||
printf("quit failed: %d\n", errno);
|
printf("quit failed: %d\n", errno);
|
||||||
}
|
}
|
||||||
printf("Exitting...\n");
|
printf("Exiting...\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,7 @@ int telnetd_main(int argc, char *argv[])
|
|||||||
ret = telnetd_start(&config);
|
ret = telnetd_start(&config);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
printf("Failed to tart the Telnet daemon\n");
|
printf("Failed to start the Telnet daemon\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("telnetd_main: Exiting\n");
|
printf("telnetd_main: Exiting\n");
|
||||||
|
@ -230,6 +230,10 @@ static int dhcpc_sendmsg(FAR struct dhcpc_state_s *pdhcpc,
|
|||||||
/* Broadcast DISCOVER message to all servers */
|
/* Broadcast DISCOVER message to all servers */
|
||||||
|
|
||||||
case DHCPDISCOVER:
|
case DHCPDISCOVER:
|
||||||
|
/* REVISIT: We don't need the broadcast flag since we can receive
|
||||||
|
* unicast traffic before being fully configured.
|
||||||
|
*/
|
||||||
|
|
||||||
pdhcpc->packet.flags = HTONS(BOOTP_BROADCAST); /* Broadcast bit. */
|
pdhcpc->packet.flags = HTONS(BOOTP_BROADCAST); /* Broadcast bit. */
|
||||||
pend = dhcpc_addreqoptions(pend);
|
pend = dhcpc_addreqoptions(pend);
|
||||||
break;
|
break;
|
||||||
@ -237,6 +241,10 @@ static int dhcpc_sendmsg(FAR struct dhcpc_state_s *pdhcpc,
|
|||||||
/* Send REQUEST message to the server that sent the *first* OFFER */
|
/* Send REQUEST message to the server that sent the *first* OFFER */
|
||||||
|
|
||||||
case DHCPREQUEST:
|
case DHCPREQUEST:
|
||||||
|
/* REVISIT: We don't need the broadcast flag since we can receive
|
||||||
|
* unicast traffic before being fully configured.
|
||||||
|
*/
|
||||||
|
|
||||||
pdhcpc->packet.flags = HTONS(BOOTP_BROADCAST); /* Broadcast bit. */
|
pdhcpc->packet.flags = HTONS(BOOTP_BROADCAST); /* Broadcast bit. */
|
||||||
memcpy(pdhcpc->packet.ciaddr, &pdhcpc->ipaddr.s_addr, 4);
|
memcpy(pdhcpc->packet.ciaddr, &pdhcpc->ipaddr.s_addr, 4);
|
||||||
pend = dhcpc_addserverid(&pdhcpc->serverid, pend);
|
pend = dhcpc_addserverid(&pdhcpc->serverid, pend);
|
||||||
|
@ -900,7 +900,7 @@ static void *httpd_handler(void *arg)
|
|||||||
|
|
||||||
/* Exit the task */
|
/* Exit the task */
|
||||||
|
|
||||||
ninfo("[%d] Exitting\n", sockfd);
|
ninfo("[%d] Exiting\n", sockfd);
|
||||||
close(sockfd);
|
close(sockfd);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -556,7 +556,7 @@ static int user_main(int argc, char *argv[])
|
|||||||
show_memory_usage(&g_mmbefore, &g_mmafter);
|
show_memory_usage(&g_mmbefore, &g_mmafter);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("user_main: Exitting\n");
|
printf("user_main: Exiting\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ static FAR void *thread_outer(FAR void *parameter)
|
|||||||
thread_inner((int)((intptr_t)parameter), 0);
|
thread_inner((int)((intptr_t)parameter), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("thread_outer[%d]: Exitting\n", (int)((intptr_t)parameter));
|
printf("thread_outer[%d]: Exiting\n", (int)((intptr_t)parameter));
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
return NULL; /* Non-reachable -- needed for some compilers */
|
return NULL; /* Non-reachable -- needed for some compilers */
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ static FAR void *robust_waiter(FAR void *parameter)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("robust_waiter: Exitting with mutex\n");
|
printf("robust_waiter: Exiting with mutex\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(2);
|
sleep(2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user