Alejandro Colomar
fce1d88479
lib/list.c: is_on_list(): Call strsep(3) instead of open-coding it
...
Signed-off-by: Alejandro Colomar <alx@kernel.org >
2024-03-14 17:11:36 -05:00
Alejandro Colomar
46fd68c37e
lib/list.c: is_on_list(): Move break condition to loop controlling expression
...
This change executes `i++` one more time before breaking, so we need to
update the `i+1` after the loop to just `i`.
Signed-off-by: Alejandro Colomar <alx@kernel.org >
2024-03-14 17:11:36 -05:00
Alejandro Colomar
fb01e07e83
lib/list.c: is_on_list(): Move code out of loop
...
Signed-off-by: Alejandro Colomar <alx@kernel.org >
2024-03-14 17:11:36 -05:00
Alejandro Colomar
08ae38e394
lib/list.c: is_on_list(): Remove unnecessary use of temporary variable
...
Signed-off-by: Alejandro Colomar <alx@kernel.org >
2024-03-14 17:11:36 -05:00
Alejandro Colomar
f1b9f8d829
lib/: Remove /*@out@*/ comments in return type
...
/*@out@*/ makes no sense in the return of a function, AFAICS.
Link: <https://splint.org/manual/manual.html#undefined >
Cc: Serge Hallyn <serge@hallyn.com >
Signed-off-by: Alejandro Colomar <alx@kernel.org >
2024-01-15 13:14:28 -06:00
Alejandro Colomar
093fb605f9
lib: Merge libmisc into libshadow
...
The separation was unnecessary, and caused build problems. Let's go
wild and obliterate the library. The files are moved to libshadow.
Scripted change:
$ find libmisc/ -type f \
| grep '\.[chy]$' \
| xargs mv -t lib;
Plus updating the Makefile and other references. While at it, I've
sorted the sources lists.
Link: <https://github.com/shadow-maint/shadow/pull/792 >
Reported-by: David Seifert <soap@gentoo.org >
Cc: Sam James <sam@gentoo.org >
Cc: Christian Bricart <christian@bricart.de >
Cc: Michael Vetter <jubalh@iodoru.org >
Cc: Robert Förster <Dessa@gmake.de >
[ soap tested the Gentoo package ]
Tested-by: David Seifert <soap@gentoo.org >
Acked-by: David Seifert <soap@gentoo.org >
Acked-by: Serge Hallyn <serge@hallyn.com >
Acked-by: Iker Pedrosa <ipedrosa@redhat.com >
Acked-by: <lslebodn@fedoraproject.org >
Signed-off-by: Alejandro Colomar <alx@kernel.org >
2023-08-31 08:55:26 +02:00