app-forensics/chkrootkit: fix c23

not reported (no ML or repo)

Closes: https://bugs.gentoo.org/943851
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43965
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2025-09-26 14:19:35 +02:00
committed by Sam James
parent 3a6efa4d36
commit 5a7afe890d
2 changed files with 36 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ PATCHES=(
"${WORKDIR}/${P}-gentoo.patch"
"${FILESDIR}/${PN}-0.55-fcntl_h.patch"
"${FILESDIR}/${PN}-0.55-limits_h.patch"
"${FILESDIR}/${PN}-0.58b-fix_c23.patch"
)
src_prepare() {

View File

@@ -0,0 +1,35 @@
fix c23, see https://bugs.gentoo.org/943851
https://src.fedoraproject.org/rpms/chkrootkit/raw/rawhide/f/chkrootkit-0.57-sighandler-type.patch + remove old style definition
--- a/chklastlog.c
+++ b/chklastlog.c
@@ -77,7 +77,7 @@
long total_wtmp_bytes_read=0;
size_t wtmp_file_size;
uid_t *uid;
-void read_status();
+void read_status(int signum);
struct s_localpwd {
int numentries;
@@ -213,7 +213,7 @@
}
#endif
-void read_status() {
+void read_status(int signum) {
double remaining_time;
static long last_total_bytes_read=0;
int diff;
--- a/chkwtmp.c
+++ b/chkwtmp.c
@@ -43,9 +43,7 @@ int main () { return 0; }
#endif
#endif
-void printit(counter, start, end)
-int counter;
-long start,end;
+void printit(int counter, long start, long end)
{
char buffer[30];