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 /src | |
| parent | f353af5b5b0cfa922a067aa67a1645b822933c0d (diff) | |
| download | redo-29146ef1d75adaf4d736c9a71491eff0b7fb3880.tar.gz redo-29146ef1d75adaf4d736c9a71491eff0b7fb3880.tar.xz redo-29146ef1d75adaf4d736c9a71491eff0b7fb3880.zip  | |
Remove REDO_MAGIC handling code from handle_c()
Diffstat (limited to 'src')
| -rw-r--r-- | src/build.c | 13 | 
1 files changed, 0 insertions, 13 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) {  | 
