RTEMS | Draft: libcsupport: Reimplement POSIX passwd and group entry APIs (!1250)
Gedare Bloom (@gedare)
gitlab at rtems.org
Tue May 19 21:44:57 UTC 2026
Gedare Bloom started a new discussion on cpukit/libcsupport/src/getgrent.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1250#note_150562
> + }
> +
> + end = line + linesize;
> + colon_count = 0;
> +
> + for (p = line; p < end && colon_count < needed; ++p) {
> + if (*p == ':') {
> + ++colon_count;
> + }
> + }
> +
> + if (colon_count < needed) {
> + return 0;
> + }
> +
> + switch (how) {
since there's only two cases here, I'd use `if-else` instead of `switch`
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1250#note_150562
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260519/6c31569c/attachment-0001.htm>
More information about the bugs
mailing list