diff --git a/examples/ftpc/ftpc_cmds.c b/examples/ftpc/ftpc_cmds.c index 208892379..ea8d7fc02 100644 --- a/examples/ftpc/ftpc_cmds.c +++ b/examples/ftpc/ftpc_cmds.c @@ -89,7 +89,7 @@ int cmd_rquit(SESSION handle, int argc, char **argv) { printf("quit failed: %d\n", errno); } - printf("Exitting...\n"); + printf("Exiting...\n"); exit(0); return ERROR; } diff --git a/examples/telnetd/telnetd.c b/examples/telnetd/telnetd.c index c36764587..e774948e8 100644 --- a/examples/telnetd/telnetd.c +++ b/examples/telnetd/telnetd.c @@ -256,7 +256,7 @@ int telnetd_main(int argc, char *argv[]) ret = telnetd_start(&config); if (ret < 0) { - printf("Failed to tart the Telnet daemon\n"); + printf("Failed to start the Telnet daemon\n"); } printf("telnetd_main: Exiting\n"); diff --git a/netutils/dhcpc/dhcpc.c b/netutils/dhcpc/dhcpc.c index 546be59fb..5019d3ddb 100644 --- a/netutils/dhcpc/dhcpc.c +++ b/netutils/dhcpc/dhcpc.c @@ -230,6 +230,10 @@ static int dhcpc_sendmsg(FAR struct dhcpc_state_s *pdhcpc, /* Broadcast DISCOVER message to all servers */ 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. */ pend = dhcpc_addreqoptions(pend); 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 */ 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. */ memcpy(pdhcpc->packet.ciaddr, &pdhcpc->ipaddr.s_addr, 4); pend = dhcpc_addserverid(&pdhcpc->serverid, pend); diff --git a/netutils/webserver/httpd.c b/netutils/webserver/httpd.c index 038f1c2c9..dcea628a5 100644 --- a/netutils/webserver/httpd.c +++ b/netutils/webserver/httpd.c @@ -900,7 +900,7 @@ static void *httpd_handler(void *arg) /* Exit the task */ - ninfo("[%d] Exitting\n", sockfd); + ninfo("[%d] Exiting\n", sockfd); close(sockfd); return NULL; } diff --git a/testing/ostest/ostest_main.c b/testing/ostest/ostest_main.c index 694df609c..a3a7f3406 100644 --- a/testing/ostest/ostest_main.c +++ b/testing/ostest/ostest_main.c @@ -556,7 +556,7 @@ static int user_main(int argc, char *argv[]) show_memory_usage(&g_mmbefore, &g_mmafter); } - printf("user_main: Exitting\n"); + printf("user_main: Exiting\n"); return 0; } diff --git a/testing/ostest/rmutex.c b/testing/ostest/rmutex.c index 3557fdb2f..917e2d5f6 100644 --- a/testing/ostest/rmutex.c +++ b/testing/ostest/rmutex.c @@ -110,7 +110,7 @@ static FAR void *thread_outer(FAR void *parameter) 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); return NULL; /* Non-reachable -- needed for some compilers */ } diff --git a/testing/ostest/robust.c b/testing/ostest/robust.c index 2fb83053f..3680bab8a 100644 --- a/testing/ostest/robust.c +++ b/testing/ostest/robust.c @@ -75,7 +75,7 @@ static FAR void *robust_waiter(FAR void *parameter) } else { - printf("robust_waiter: Exitting with mutex\n"); + printf("robust_waiter: Exiting with mutex\n"); } sleep(2);