summaryrefslogtreecommitdiffstats
path: root/src/file_ttf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:29:29 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:29:29 +0100
commit203df0e3a588f01ebfb60428eb1a5ab258a4969d (patch)
tree022c7facc406d0eea910638c7b41355964ee8549 /src/file_ttf.c
parentc6e94c6adfe071f4510190069638d70d59675f42 (diff)
Fix some compilation warnings
Diffstat (limited to 'src/file_ttf.c')
-rw-r--r--src/file_ttf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/file_ttf.c b/src/file_ttf.c
index ffc475a..8623623 100644
--- a/src/file_ttf.c
+++ b/src/file_ttf.c
@@ -23,9 +23,6 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
@@ -36,7 +33,6 @@
#include "types.h"
#include "common.h"
#include "filegen.h"
-#include "log.h"
static void register_header_check_ttf(file_stat_t *file_stat);
static int header_check_ttf(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new);
@@ -111,7 +107,7 @@ static int header_check_ttf(const unsigned char *buffer, const unsigned int buff
{
const struct ttf_table_directory*ttf_dir=(const struct ttf_table_directory*)(ttf+1);
uint64_t max_offset=0;
- int i;
+ unsigned int i;
for(i=0; i<numTables; i++,ttf_dir++)
{
/* | 0x3: align the end of the table */