From 6922e6678d247af8c9d63df7a3db2fe83c328f7e Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Tue, 25 Feb 2014 00:30:31 +0100 Subject: Get rid of warnings uncovered with clangs -Weverything --- src/export/mystdlib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/export/mystdlib.h') diff --git a/src/export/mystdlib.h b/src/export/mystdlib.h index 2e9499f..dd08137 100644 --- a/src/export/mystdlib.h +++ b/src/export/mystdlib.h @@ -1,7 +1,8 @@ #include +#include #include -typedef struct { int fh; unsigned char *addr; size_t size; } *MAP; +typedef struct { int fh; uint8_t *addr; size_t size; } *MAP; /* Mapps a file into memory returns pointer to the mapping struct, @@ -28,5 +29,5 @@ void unmap_file ( MAP *pMap ); /* Gets file size of open file returns != 0 in case of error */ -inline int getfilesize( int fd, unsigned long *size ); +inline int getfilesize( int fd, size_t *size ); -- cgit v1.2.3