Pablo Saavedra
cd9b4de327
lib/, src/: Make the use of MAYBE_UNUSED macro consistent
...
There is an inconsistent use of the MAYBE_UNUSED macro. Sometimes the
`int unused(x)` form is used form and others the `unused int x`. We'd
like to use the second form always.
Related-To: https://github.com/shadow-maint/shadow/issues/918
Suggested-by: Alejandro Colomar <alx@kernel.org >
Signed-off-by: Pablo Saavedra <psaavedra@igalia.com >
2024-01-30 16:19:56 +01:00
Pablo Saavedra
5d5d212764
lib/, src/: Rename 'unused' macro as 'MAYBE_UNUSED'
...
Related-To: https://github.com/shadow-maint/shadow/issues/918
Suggested-by: Alejandro Colomar <alx@kernel.org >
Signed-off-by: Pablo Saavedra <psaavedra@igalia.com >
2024-01-30 16:19:56 +01:00
Pablo Saavedra
da84d0ede7
Fix Build error 'parameter name omitted' in logind
...
Fixes #918 by adding the omitted parameter name in
active_sessions_count().
Signed-off-by: Pablo Saavedra <psaavedra@igalia.com >
2024-01-30 16:19:56 +01:00
Alejandro Colomar
44b8f7b3ef
lib/attr.h, lib/, src/: Move attributes to new header file
...
Signed-off-by: Alejandro Colomar <alx@kernel.org >
2023-12-03 09:56:13 -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