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/20 10:50:27 UTC
(nuttx-apps) 01/02: nshlib: Fix the nxstyle error in nsh_syscmds.c.
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 621136c28d4a3206ef72103f9befe7ac8c2c42b4
Author: Marco Casaroli <ma...@gmail.com>
AuthorDate: Sun Oct 18 19:54:17 2026 +0200
nshlib: Fix the nxstyle error in nsh_syscmds.c.
Add the blank line after a declaration in cmd_uname() that nxstyle
wants.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <ma...@gmail.com>
---
nshlib/nsh_syscmds.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/nshlib/nsh_syscmds.c b/nshlib/nsh_syscmds.c
index 8ddda99a8..ec509baaf 100644
--- a/nshlib/nsh_syscmds.c
+++ b/nshlib/nsh_syscmds.c
@@ -877,6 +877,7 @@ int cmd_uname(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
for (i = 0; set != 0; i++)
{
unsigned int mask = (1 << i);
+
if ((set & mask) != 0)
{
set &= ~mask;