gentoo-ebuilds/app-forensics/chkrootkit/files/chkrootkit-0.58b-fix_c23.patch
Nicolas PARLANT 5a7afe890d
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>
2025-09-30 09:24:32 +01:00

35 lines
796 B
Diff

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];