You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2026/10/04 20:50:34 UTC
(nuttx-apps) 02/02: netutils/dhcpc: Fix nxstyle issues.
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit ebf379ffe273244de8da291d5c455c532c54ddb3
Author: Erik Englund <er...@gmail.com>
AuthorDate: Fri Oct 2 19:55:32 2026 +0200
netutils/dhcpc: Fix nxstyle issues.
Comment indentation in dhcpc_parseoptions() and missing blank lines after
declarations. No functional change.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Erik Englund <er...@gmail.com>
---
netutils/dhcpc/dhcpc.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/netutils/dhcpc/dhcpc.c b/netutils/dhcpc/dhcpc.c
index 8d3d4df22..281a96ebd 100644
--- a/netutils/dhcpc/dhcpc.c
+++ b/netutils/dhcpc/dhcpc.c
@@ -165,6 +165,7 @@ static FAR uint8_t *dhcpc_addhostname(FAR const char *hostname,
FAR uint8_t *optptr)
{
int len = strlen(hostname);
+
*optptr++ = DHCP_OPTION_HOST_NAME;
*optptr++ = len;
memcpy(optptr, hostname, len);
@@ -476,7 +477,7 @@ static uint8_t dhcpc_parseoptions(FAR struct dhcpc_state *presult,
case DHCP_OPTION_LEASE_TIME:
- /* Get lease time (in seconds) in host order */
+ /* Get lease time (in seconds) in host order */
if (optptr + 6 <= end)
{
@@ -492,7 +493,7 @@ static uint8_t dhcpc_parseoptions(FAR struct dhcpc_state *presult,
case DHCP_OPTION_T1_TIME:
- /* Get renewal (T1) time (in seconds) in host order */
+ /* Get renewal (T1) time (in seconds) in host order */
if (optptr + 6 <= end)
{
@@ -508,7 +509,7 @@ static uint8_t dhcpc_parseoptions(FAR struct dhcpc_state *presult,
case DHCP_OPTION_T2_TIME:
- /* Get rebinding (T2) time (in seconds) in host order */
+ /* Get rebinding (T2) time (in seconds) in host order */
if (optptr + 6 <= end)
{
@@ -1030,6 +1031,7 @@ int dhcpc_request(FAR void *handle, FAR struct dhcpc_state *presult)
if (presult->num_dnsaddr > 0)
{
uint8_t i;
+
for (i = 0; i < presult->num_dnsaddr; i++)
{
ninfo("Got DNS server %d: %u.%u.%u.%u\n", i,
@@ -1045,6 +1047,7 @@ int dhcpc_request(FAR void *handle, FAR struct dhcpc_state *presult)
if (presult->num_ntpaddr > 0)
{
uint8_t i;
+
for (i = 0; i < presult->num_ntpaddr; i++)
{
ninfo("Got NTP server %d: %u.%u.%u.%u\n", i,