Browse code

fix other implicit function declarations

git-svn: trunk@1903

Tomasz Kojm authored on 2006/04/10 18:59:51
Showing 5 changed files
... ...
@@ -1,3 +1,9 @@
1
+Mon Apr 10 11:45:07 CEST 2006 (tk)
2
+----------------------------------
3
+  * fix other implicit function declarations
4
+    Thanks to Paul Fisher <pnfisher*berkeley.edu>, Ludwig Nussel
5
+    <ludwig.nussel*suse.de> and Stephen Gran <steve*lobefin.net>
6
+
1 7
 Mon Apr 10 01:05:28 CEST 2006 (tk)
2 8
 ----------------------------------
3 9
   * libclamav/sis.c: handle pseudo-archives generated by installers
... ...
@@ -31,6 +31,8 @@
31 31
 #include <sys/stat.h>
32 32
 #include <errno.h>
33 33
 #include <sys/time.h>
34
+#include <sys/wait.h>
35
+
34 36
 
35 37
 #if HAVE_SYS_PARAM_H
36 38
 #include <sys/param.h>
... ...
@@ -70,6 +72,7 @@
70 70
 #include "cfgparser.h"
71 71
 #include "session.h"
72 72
 #include "others.h"
73
+#include "output.h"
73 74
 
74 75
 #define ENV_FILE  "CLAM_VIRUSEVENT_FILENAME"
75 76
 #define ENV_VIRUS "CLAM_VIRUSEVENT_VIRUSNAME"
... ...
@@ -51,6 +51,8 @@
51 51
 #include "../libclamav/others.h"
52 52
 #include "../libclamav/str.h" /* cli_strtok */
53 53
 #include "dns.h"
54
+#include "execute.h"
55
+
54 56
 
55 57
 
56 58
 int downloadmanager(const struct cfgstruct *copt, const struct optstruct *opt, const char *hostname)
... ...
@@ -64,6 +64,7 @@ extern int cli_mbox(const char *dir, int desc, unsigned int options); /* FIXME *
64 64
 #include "untar.h"
65 65
 #include "special.h"
66 66
 #include "binhex.h"
67
+#include "tnef.h"
67 68
 #include "sis.h"
68 69
 #include "pdf.h"
69 70
 
... ...
@@ -320,7 +321,7 @@ static int cli_scanzip(int desc, cli_ctx *ctx, off_t sfx_offset, uint32_t *sfx_c
320 320
 	 * Bit 6: Strong encryption was used
321 321
 	 * Bit 13: Encrypted central directory
322 322
 	 */
323
-	encrypted = (zdirent.d_flags & 0x2041 != 0);
323
+	encrypted = ((zdirent.d_flags & 0x2041) != 0);
324 324
 
325 325
 	cli_dbgmsg("Zip: %s, crc32: 0x%x, offset: %d, encrypted: %d, compressed: %u, normal: %u, method: %d, ratio: %d (max: %d)\n", zdirent.d_name, zdirent.d_crc32, zdirent.d_off, encrypted, zdirent.d_csize, zdirent.st_size, zdirent.d_compr, zdirent.d_csize ? (zdirent.st_size / zdirent.d_csize) : 0, ctx->limits ? ctx->limits->maxratio : 0);
326 326
 
... ...
@@ -1593,8 +1594,7 @@ static int cli_scanraw(int desc, cli_ctx *ctx, cli_file_t type)
1593 1593
 
1594 1594
 int cli_magic_scandesc(int desc, cli_ctx *ctx)
1595 1595
 {
1596
-	int ret = CL_CLEAN, nret;
1597
-	int bread = 0;
1596
+	int ret = CL_CLEAN;
1598 1597
 	cli_file_t type;
1599 1598
 	struct stat sb;
1600 1599
 
... ...
@@ -29,6 +29,7 @@
29 29
 #include <sys/types.h>
30 30
 #include <sys/stat.h>
31 31
 #include <fcntl.h>
32
+#include <ctype.h>
32 33
 
33 34
 #include "clamav.h"
34 35
 #include "cfgparser.h"