X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/c203b667fcd866d1d70de746400d46acadaea9da..df963ba5bc43c7621fe17c6075ec64dab65c4a62:/gen/hosts.pc diff --git a/gen/hosts.pc b/gen/hosts.pc index 48746700..62174d17 100644 --- a/gen/hosts.pc +++ b/gen/hosts.pc @@ -33,9 +33,8 @@ int main(int argc, char **argv) { FILE *out = stdout; char *outf = NULL, outft[MAXPATHLEN], *p; - struct stat sb; struct timeval now; - int flag1, flag2, i; + int i; struct hash *aliases; EXEC SQL BEGIN DECLARE SECTION; int id; @@ -48,18 +47,6 @@ int main(int argc, char **argv) if (argc == 2) { - if (stat(argv[1], &sb) == 0) - { - if (ModDiff(&flag1, "machine", sb.st_mtime) || - ModDiff(&flag2, "subnet", sb.st_mtime)) - exit(MR_DATE); - if (flag1 < 0 && flag2 < 0) - { - fprintf(stderr, "File %s does not need to be rebuilt.\n", - argv[1]); - exit(MR_NO_CHANGE); - } - } outf = argv[1]; sprintf(outft, "%s~", outf); if (!(out = fopen(outft, "w")))