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.h | |
| parent | ffbf9e8402aad3dff81546937798fe9f9a26289a (diff) | |
Get rid of warnings uncovered with clangs -Weverything
Diffstat (limited to 'src/export/mystdlib.h')
| -rw-r--r-- | src/export/mystdlib.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ | |||
| 1 | #include <sys/types.h> | 1 | #include <sys/types.h> |
| 2 | #include <stdint.h> | ||
| 2 | #include <stdio.h> | 3 | #include <stdio.h> |
| 3 | 4 | ||
| 4 | typedef struct { int fh; unsigned char *addr; size_t size; } *MAP; | 5 | typedef struct { int fh; uint8_t *addr; size_t size; } *MAP; |
| 5 | 6 | ||
| 6 | /* Mapps a file into memory | 7 | /* Mapps a file into memory |
| 7 | returns pointer to the mapping struct, | 8 | returns pointer to the mapping struct, |
| @@ -28,5 +29,5 @@ void unmap_file ( MAP *pMap ); | |||
| 28 | 29 | ||
| 29 | /* Gets file size of open file | 30 | /* Gets file size of open file |
| 30 | returns != 0 in case of error */ | 31 | returns != 0 in case of error */ |
| 31 | inline int getfilesize( int fd, unsigned long *size ); | 32 | inline int getfilesize( int fd, size_t *size ); |
| 32 | 33 | ||
