diff options
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 | } |