aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-11-29 17:29:25 +0100
committerTharre <tharre3@gmail.com>2014-11-29 17:29:25 +0100
commit622bdcb7e36498b2bfdc193b00cf690a6a11512b (patch)
tree56fa44073521ee1fed61967e0bd5c888bc4b8683
parentfd3fed519444f1e35e8d5cbea52eb767919ead47 (diff)
downloadredo-622bdcb7e36498b2bfdc193b00cf690a6a11512b.tar.gz
redo-622bdcb7e36498b2bfdc193b00cf690a6a11512b.tar.xz
redo-622bdcb7e36498b2bfdc193b00cf690a6a11512b.zip
Fix typo in build.c that made fseek() fail
-rw-r--r--src/build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.c b/src/build.c
index 677f7b9..67f99c3 100644
--- a/src/build.c
+++ b/src/build.c
@@ -76,7 +76,7 @@ int build_target(const char *target) {
fatal("redo: failed to open %s\n", dep_file);
memset(old_hash, 0, HASHSIZE); // FIXME
} else {
- if (!fseek(fp, sizeof(unsigned), SEEK_SET))
+ if (fseek(fp, sizeof(unsigned), SEEK_SET))
fatal("redo: fseek() failed");
if (fread(old_hash, 1, HASHSIZE, fp) < HASHSIZE)
fatal("redo: failed to read stuff");