git-svn: trunk@2163
aCaB authored on 2006/08/01 19:25:24... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Tue Aug 1 12:23:43 CEST 2006 (acab) |
|
2 |
+------------------------------------ |
|
3 |
+ * libclamav: includes cleanup (big thanks njh!) |
|
4 |
+ |
|
1 | 5 |
Tue Aug 1 08:33:09 BST 2006 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* clamav-milter: Honour dont-scan-on-error if the database can't be |
... | ... |
@@ -37,15 +37,9 @@ |
37 | 37 |
#include "clamav-config.h" |
38 | 38 |
#endif |
39 | 39 |
|
40 |
-#include <stdio.h> |
|
41 | 40 |
#include <stdlib.h> |
42 |
-#include <sys/types.h> |
|
43 |
-#include <sys/stat.h> |
|
44 |
-#include <unistd.h> |
|
45 |
-#include <string.h> |
|
46 | 41 |
|
47 | 42 |
#include "cltypes.h" |
48 |
-#include "pe.h" |
|
49 | 43 |
#include "rebuildpe.h" |
50 | 44 |
#include "others.h" |
51 | 45 |
#include "packlibs.h" |
... | ... |
@@ -48,11 +48,7 @@ |
48 | 48 |
#include "clamav-config.h" |
49 | 49 |
#endif |
50 | 50 |
|
51 |
-#include <stdio.h> |
|
52 | 51 |
#include <stdlib.h> |
53 |
-#include <sys/types.h> |
|
54 |
-#include <sys/stat.h> |
|
55 |
-#include <unistd.h> |
|
56 | 52 |
#include <string.h> |
57 | 53 |
|
58 | 54 |
#include "cltypes.h" |
... | ... |
@@ -285,7 +281,7 @@ int petite_inflate2x_1to9(char *buf, uint32_t minrva, uint32_t bufsz, struct pe_ |
285 | 285 |
packed += 0x10; |
286 | 286 |
|
287 | 287 |
/* Alloc 1 more struct */ |
288 |
- if ( ! (tmpsct = realloc(usects, sizeof(struct SECTION) * (j+1))) ) { |
|
288 |
+ if ( ! (tmpsct = cli_realloc(usects, sizeof(struct SECTION) * (j+1))) ) { |
|
289 | 289 |
if (usects) |
290 | 290 |
free(usects); |
291 | 291 |
return -1; |
... | ... |
@@ -51,18 +51,13 @@ |
51 | 51 |
#include "clamav-config.h" |
52 | 52 |
#endif |
53 | 53 |
|
54 |
-#include <stdio.h> |
|
55 | 54 |
#include <stdlib.h> |
56 |
-#include <sys/types.h> |
|
57 |
-#include <sys/stat.h> |
|
58 |
-#include <unistd.h> |
|
59 | 55 |
#include <string.h> |
60 | 56 |
|
61 | 57 |
#include "cltypes.h" |
62 | 58 |
#include "pe.h" |
63 | 59 |
#include "rebuildpe.h" |
64 | 60 |
#include "others.h" |
65 |
-#include "spin.h" |
|
66 | 61 |
#include "packlibs.h" |
67 | 62 |
|
68 | 63 |
#define EC32(x) le32_to_host(x) /* Convert little endian to host */ |
... | ... |
@@ -51,18 +51,11 @@ |
51 | 51 |
#include "clamav-config.h" |
52 | 52 |
#endif |
53 | 53 |
|
54 |
-#include <stdio.h> |
|
55 | 54 |
#include <stdlib.h> |
56 |
-#include <sys/types.h> |
|
57 |
-#include <sys/stat.h> |
|
58 |
-#include <unistd.h> |
|
59 | 55 |
#include <string.h> |
60 | 56 |
|
61 | 57 |
#include "cltypes.h" |
62 |
-#include "pe.h" |
|
63 |
-#include "rebuildpe.h" |
|
64 | 58 |
#include "others.h" |
65 |
-#include "wwunpack.h" |
|
66 | 59 |
|
67 | 60 |
#define VAALIGN(s) (((s)/0x1000+((s)%0x1000!=0))*0x1000) |
68 | 61 |
#define FIXVS(v, r) (VAALIGN((r>v)?r:v)) |