author | Rodrigo Campos
<rodrigo@sdfg.com.ar> 2014-01-22 17:50:33 UTC |
committer | Rodrigo Campos
<rodrigo@sdfg.com.ar> 2014-01-22 17:52:53 UTC |
parent | 8b32394d167a85584b0531159cfddef73c90967a |
drill.c | +1 | -1 |
diff --git a/drill.c b/drill.c index 03f8eb6..df17730 100644 --- a/drill.c +++ b/drill.c @@ -122,7 +122,7 @@ int drill(int fd, size_t hole_size) } out: err = munmap(zeros, hole_size); - if (err == -1) { + if (err) { perror("munmap failed"); ret = 1; }