diff options
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/rpmfileutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmfileutil.c b/rpmio/rpmfileutil.c index 19dc5eb30..454d8e3ac 100644 --- a/rpmio/rpmfileutil.c +++ b/rpmio/rpmfileutil.c @@ -161,7 +161,7 @@ int rpmDoDigest(pgpHashAlgo algo, const char * fn,int asAscii, if (fsize) { mapped = mmap(NULL, fsize, PROT_READ, MAP_SHARED, fdno, 0); - if (mapped == (void *)-1) { + if (mapped == MAP_FAILED) { xx = close(fdno); rc = 1; break; |