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 ec3e6f0862ed24d6d5e48faa29e84cc9312cd0b6 Author: Marco Casaroli <[email protected]> AuthorDate: Thu Nov 26 07:23:10 2026 +0100 netutils/netinit: Fix the style of netinit_checkpath(). Add the blank lines after the declarations and indent the usleep() call, as nxstyle asks. No code change. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- netutils/netinit/netinit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/netutils/netinit/netinit.c b/netutils/netinit/netinit.c index 6120f4a67..ef540e700 100644 --- a/netutils/netinit/netinit.c +++ b/netutils/netinit/netinit.c @@ -347,9 +347,11 @@ static void netinit_set_macaddr(void) static inline void netinit_checkpath(void) { int retries = CONFIG_NETINIT_RETRY_MOUNTPATH; + while (retries > 0) { DIR * dir = opendir(CONFIG_IPCFG_PATH); + if (dir) { /* Directory exists. */ @@ -359,7 +361,7 @@ static inline void netinit_checkpath(void) } else { - usleep(100000); + usleep(100000); } retries--;
