diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-02-02 13:47:49 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-02-02 13:47:49 +0000 |
commit | 89cfbc73b83ac826bd95ad3336d0d9d7cee0d517 (patch) | |
tree | 52a45f86e9a29a5c10005b18695f535cde12dcf7 /usr.bin/make/main.c | |
parent | 6ead3373fdd3f136aefedec5ee2e05f125596a5a (diff) |
Bug-fix: make should behave sensibly when presented with negative times...
- let *_MTime return booleans, as that's what they're used for, the time_t
is set as a side effect.
- use OUT_OF_DATE for a date starting point, set it at the origin of time.
Diffstat (limited to 'usr.bin/make/main.c')
-rw-r--r-- | usr.bin/make/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index f602dac7b5f..a3a32825442 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.27 1999/12/19 00:04:25 espie Exp $ */ +/* $OpenBSD: main.c,v 1.28 2000/02/02 13:47:47 espie Exp $ */ /* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */ /* @@ -49,7 +49,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.27 1999/12/19 00:04:25 espie Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.28 2000/02/02 13:47:47 espie Exp $"; #endif #endif /* not lint */ @@ -113,7 +113,7 @@ static char rcsid[] = "$OpenBSD: main.c,v 1.27 1999/12/19 00:04:25 espie Exp $"; #define MAKEFLAGS ".MAKEFLAGS" Lst create; /* Targets to be made */ -time_t now; /* Time at start of make */ +time_t now = OUT_OF_DATE;/* Time at start of make */ GNode *DEFAULT; /* .DEFAULT node */ Boolean allPrecious; /* .PRECIOUS given on line by itself */ |