git-svn: trunk@3623
Nigel Horne authored on 2008/02/12 20:33:47... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Tue Feb 12 11:19:22 GMT 2008 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/pdf.c: Fix some warning messages and compilation error on |
|
4 |
+ Cygwin |
|
5 |
+ |
|
1 | 6 |
Tue Feb 12 11:13:14 GMT 2008 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav/mbox.c: Code tidy |
... | ... |
@@ -56,6 +56,7 @@ static char const rcsid[] = "$Id: pdf.c,v 1.61 2007/02/12 20:46:09 njh Exp $"; |
56 | 56 |
#include "others.h" |
57 | 57 |
#include "mbox.h" |
58 | 58 |
#include "pdf.h" |
59 |
+#include "scanners.h" |
|
59 | 60 |
|
60 | 61 |
#ifdef CL_DEBUG |
61 | 62 |
/*#define SAVE_TMP /* Save the file being worked on in tmp */ |
... | ... |
@@ -81,7 +82,7 @@ cli_pdf(const char *dir, int desc, cli_ctx *ctx) |
81 | 81 |
const char *xrefstart; /* cross reference table */ |
82 | 82 |
/*size_t xreflength;*/ |
83 | 83 |
table_t *md5table; |
84 |
- int printed_predictor_message, printed_embedded_font_message, ret, rc; |
|
84 |
+ int printed_predictor_message, printed_embedded_font_message, rc; |
|
85 | 85 |
unsigned int files; |
86 | 86 |
struct stat statb; |
87 | 87 |
|
... | ... |
@@ -191,6 +192,8 @@ cli_pdf(const char *dir, int desc, cli_ctx *ctx) |
191 | 191 |
|
192 | 192 |
files = 0; |
193 | 193 |
|
194 |
+ rc = CL_CLEAN; |
|
195 |
+ |
|
194 | 196 |
/* |
195 | 197 |
* The body section consists of a sequence of indirect objects |
196 | 198 |
*/ |
... | ... |
@@ -204,7 +207,7 @@ cli_pdf(const char *dir, int desc, cli_ctx *ctx) |
204 | 204 |
int is_embedded_font, predictor; |
205 | 205 |
char fullname[NAME_MAX + 1]; |
206 | 206 |
|
207 |
- rc=CL_CLEAN; |
|
207 |
+ rc = CL_CLEAN; |
|
208 | 208 |
if(q == xrefstart) |
209 | 209 |
break; |
210 | 210 |
if(memcmp(q, "xref", 4) == 0) |
... | ... |
@@ -851,7 +854,7 @@ cli_pmemstr(const char *haystack, size_t hs, const char *needle, size_t ns) |
851 | 851 |
#include "pdf.h" |
852 | 852 |
|
853 | 853 |
int |
854 |
-cli_pdf(const char *dir, int desc, const cli_ctx *ctx) |
|
854 |
+cli_pdf(const char *dir, int desc, cli_ctx *ctx) |
|
855 | 855 |
{ |
856 | 856 |
cli_dbgmsg("File not decoded - PDF decoding needs mmap() (for now)\n"); |
857 | 857 |
return CL_CLEAN; |