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 /crypto/digest.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 'crypto/digest.c')
-rw-r--r-- | crypto/digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/digest.c b/crypto/digest.c index bc6de0b98f..b653fbb032 100644 --- a/crypto/digest.c +++ b/crypto/digest.c @@ -232,7 +232,7 @@ int digest_file_window(struct digest *d, const char *filename, } buf = memmap(fd, PROT_READ); - if (buf == (void *)-1) { + if (buf == MAP_FAILED) { buf = xmalloc(4096); flags = 1; } |