mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-16 23:19:31 +00:00
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>
35 lines
796 B
Diff
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];
|
|
|