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.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/export/mystdlib.c') diff --git a/src/export/mystdlib.c b/src/export/mystdlib.c index ffc0cd9..b65f63d 100644 --- a/src/export/mystdlib.c +++ b/src/export/mystdlib.c @@ -46,10 +46,10 @@ void unmap_file ( MAP *pMap ) free( *pMap ); *pMap = NULL; } -int getfilesize( int fd, unsigned long *size) +int getfilesize( int fd, size_t *size) { struct stat sb; if( fstat( fd, &sb )) return -1; - *size = sb.st_size; + *size = (size_t)sb.st_size; return 0; } -- cgit v1.2.3