1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#! /bin/sh /usr/share/dpatch/dpatch-run
## fixwarnings.dpatch by Giuseppe Iuculano <giuseppe@iuculano.it>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Some little fixes to silence compiler.
@DPATCH@
diff -urNad chkrootkit~/chklastlog.c chkrootkit/chklastlog.c
--- chkrootkit~/chklastlog.c 2008-11-25 00:09:03.000000000 +0100
+++ chkrootkit/chklastlog.c 2008-11-25 00:10:08.000000000 +0100
@@ -174,7 +174,7 @@
{
if (*uid > MAX_ID)
{
- fprintf(stderr, "MAX_ID is %ld and current uid is %ld, please check\n\r", MAX_ID, *uid );
+ fprintf(stderr, "MAX_ID is %ld and current uid is %ld, please check\n\r", (long int)MAX_ID, (long int)*uid );
exit (1);
}
diff -urNad chkrootkit~/chkwtmp.c chkrootkit/chkwtmp.c
--- chkrootkit~/chkwtmp.c 2008-11-24 14:20:06.000000000 +0100
+++ chkrootkit/chkwtmp.c 2008-11-25 00:09:04.000000000 +0100
@@ -30,6 +30,7 @@
#ifdef SOLARIS2
#include <fcntl.h>
#endif
+#include <stdlib.h>
#ifdef __FreeBSD__
#define WTMP_FILENAME "/var/log/wtmp"
|