summaryrefslogtreecommitdiff
path: root/src/export/mystdlib.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2014-02-25 00:30:31 +0100
committerDirk Engling <erdgeist@erdgeist.org>2014-02-25 00:30:31 +0100
commit6922e6678d247af8c9d63df7a3db2fe83c328f7e (patch)
treeacdc9e46b7a79d01b81c4a1cd5383ac2f227e490 /src/export/mystdlib.c
parentffbf9e8402aad3dff81546937798fe9f9a26289a (diff)
Get rid of warnings uncovered with clangs -Weverything
Diffstat (limited to 'src/export/mystdlib.c')
-rw-r--r--src/export/mystdlib.c4
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
49int getfilesize( int fd, unsigned long *size) 49int 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}