about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--mincore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mincore.c b/mincore.c
index 0028aea..ae127db 100644
--- a/mincore.c
+++ b/mincore.c
@@ -20,7 +20,7 @@ static void mincore_stats(const char *path, off_t offset, off_t len)
         static const char *fmt = sizeof(void *) == 8 ?
                                  "%s: %016lx %x\n": "%s: %08lx %x\n";
 
-        if ((fd = open_noatime(path) < 0)) {
+        if ((fd = open_noatime(path)) < 0) {
                 fprintf(stderr, "%s: open(): %s\n", path, strerror(errno));
                 return;
         }