diff options
author | Tharre <tharre3@gmail.com> | 2016-10-25 20:16:26 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2016-10-25 21:51:33 +0200 |
commit | 29146ef1d75adaf4d736c9a71491eff0b7fb3880 (patch) | |
tree | bddc531f1960d3b553db9d2b2de1a9e41faa223b | |
parent | f353af5b5b0cfa922a067aa67a1645b822933c0d (diff) | |
download | redo-29146ef1d75adaf4d736c9a71491eff0b7fb3880.tar.gz redo-29146ef1d75adaf4d736c9a71491eff0b7fb3880.tar.xz redo-29146ef1d75adaf4d736c9a71491eff0b7fb3880.zip |
Remove REDO_MAGIC handling code from handle_c()
-rw-r--r-- | src/build.c | 13 | ||||
-rwxr-xr-x | tests/t0100-redo.t | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/build.c b/src/build.c index d601e42..9b24753 100644 --- a/src/build.c +++ b/src/build.c @@ -492,12 +492,6 @@ static int handle_c(dep_info *dep) { goto exit2; } - errno = 0; - long magic = strtol(ctx.fields[2], NULL, 10); - if (errno) { - retval = build_target(dep); - goto exit; - } FILE *targetfd = fopen(dep->target, "rb"); if (!targetfd) { @@ -513,13 +507,6 @@ static int handle_c(dep_info *dep) { } } - if (magic == atoi(getenv("REDO_MAGIC"))) { - /* magic number matches */ - fclose(targetfd); - retval = 1; - goto exit; - } - struct stat curr_st; if (sscanf(ctx.fields[1], "%lld.%ld", (long long*)&dep->ctime.tv_sec, &dep->ctime.tv_nsec) < 2) { diff --git a/tests/t0100-redo.t b/tests/t0100-redo.t index b0bad3d..cc86d1b 100755 --- a/tests/t0100-redo.t +++ b/tests/t0100-redo.t @@ -30,7 +30,6 @@ EOF test_expect_success "redo shortcuts" " echo "s1" > s && redo a && - sleep 1 && # TODO: remove this as soon as REDO_MAGIC is fixed echo "s2" > s && redo a " |