You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2026/10/21 02:03:54 UTC
(nuttx) 01/02: fs/romfs: Fix the nxstyle error in fs_romfsutil.c.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 5e303d3cd2f68d3d62a1a3a67101dbdb01ee608e
Author: Marco Casaroli <ma...@gmail.com>
AuthorDate: Mon Oct 19 02:03:21 2026 +0200
fs/romfs: Fix the nxstyle error in fs_romfsutil.c.
Put the body of a while loop on its own line in braces. This error
is older than the next change. This change does not change the code.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <ma...@gmail.com>
---
fs/romfs/fs_romfsutil.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/fs/romfs/fs_romfsutil.c b/fs/romfs/fs_romfsutil.c
index fc081f61710..17a1c9309c5 100644
--- a/fs/romfs/fs_romfsutil.c
+++ b/fs/romfs/fs_romfsutil.c
@@ -967,7 +967,10 @@ int romfs_finddirentry(FAR struct romfs_mountpt_s *rm,
{
/* Find the start of the next path component */
- while (*entryname == '/') entryname++;
+ while (*entryname == '/')
+ {
+ entryname++;
+ }
/* Find the end of the next path component */