diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-01-12 00:24:51 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-16 08:33:34 +0100 |
commit | 246216c24eb60d2742aec18fa875c40a905ed223 (patch) | |
tree | e51c56d9df1254b565720b2214b6697716d5033a /fs/fs.c | |
parent | 31551c89701c42f63d3f4352ed84e7842d0ba9fe (diff) | |
download | barebox-246216c24eb60d2742aec18fa875c40a905ed223.tar.gz barebox-246216c24eb60d2742aec18fa875c40a905ed223.tar.xz |
treewide: Introduce MAP_FAILED and replace ad-hoc constants with it
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/fs.c')
-rw-r--r-- | fs/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -533,7 +533,7 @@ void *memmap(int fd, int flags) { struct fs_driver_d *fsdrv; FILE *f; - void *retp = (void *)-1; + void *retp = MAP_FAILED; int ret; if (check_fd(fd)) |