about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2015-05-13 00:39:13 +0000
committerEric Wong <normalperson@yhbt.net>2015-05-13 00:40:28 +0000
commit1b6b807152ea39b4d2c527f94e3d58e0df544690 (patch)
tree372b859ab5bd664a249690d6aabd8f82371ef07c
parente4dfd05b11c218512ae34b33c7198bd260ce4314 (diff)
downloadpcu-1b6b807152ea39b4d2c527f94e3d58e0df544690.tar.gz
mincore: fix mismatched parentheses HEAD master
Oops, this completely broke things :x
-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;
         }