diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2014-02-25 00:30:31 +0100 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2014-02-25 00:30:31 +0100 |
commit | 6922e6678d247af8c9d63df7a3db2fe83c328f7e (patch) | |
tree | acdc9e46b7a79d01b81c4a1cd5383ac2f227e490 /src/export/mystdlib.c | |
parent | ffbf9e8402aad3dff81546937798fe9f9a26289a (diff) |
Get rid of warnings uncovered with clangs -Weverything
Diffstat (limited to 'src/export/mystdlib.c')
-rw-r--r-- | src/export/mystdlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) | |||
46 | free( *pMap ); *pMap = NULL; | 46 | free( *pMap ); *pMap = NULL; |
47 | } | 47 | } |
48 | 48 | ||
49 | int getfilesize( int fd, unsigned long *size) | 49 | int getfilesize( int fd, size_t *size) |
50 | { | 50 | { |
51 | struct stat sb; | 51 | struct stat sb; |
52 | if( fstat( fd, &sb )) return -1; | 52 | if( fstat( fd, &sb )) return -1; |
53 | *size = sb.st_size; | 53 | *size = (size_t)sb.st_size; |
54 | return 0; | 54 | return 0; |
55 | } | 55 | } |