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 fc280995f812471adbec239d2151521e6b09258b Author: Marco Casaroli <[email protected]> AuthorDate: Thu Oct 8 22:00:03 2026 +0200 libs/libc/grp: Add blank lines after declarations. nxstyle reports three missing blank lines after declarations in lib_find_grpfile.c. No functional change. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- libs/libc/grp/lib_find_grpfile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/libc/grp/lib_find_grpfile.c b/libs/libc/grp/lib_find_grpfile.c index 999f082ad19..a7f63db4c3f 100644 --- a/libs/libc/grp/lib_find_grpfile.c +++ b/libs/libc/grp/lib_find_grpfile.c @@ -81,6 +81,7 @@ struct grp_user_s static int grp_match_name(FAR const struct group *entry, uintptr_t arg) { FAR const char *gname = (FAR const char *)arg; + return strcmp(entry->gr_name, gname) == 0 ? 1 : 0; } @@ -105,6 +106,7 @@ static int grp_match_name(FAR const struct group *entry, uintptr_t arg) static int grp_match_gid(FAR const struct group *entry, uintptr_t arg) { int match_gid = (int)arg; + return match_gid == entry->gr_gid ? 1 : 0; } @@ -199,6 +201,7 @@ static int grp_foreach(grp_foreach_match_t match, uintptr_t arg, if (stream == NULL) { int errcode = get_errno(); + DEBUGASSERT(errcode > 0); return -errcode; }
