File: fixwarnings.dpatch

package info (click to toggle)
chkrootkit 0.48-8
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 448 kB
  • ctags: 221
  • sloc: sh: 3,174; ansic: 1,474; makefile: 88
file content (30 lines) | stat: -rw-r--r-- 1,128 bytes parent folder | download
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"