summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-10-27 22:14:41 +0000
committerRoland McGrath <roland@redhat.com>1993-10-27 22:14:41 +0000
commit462e1759704912a245d0b88729e2ec858a480953 (patch)
treec7b9cc89eefb890c1df07bd10efbc94dd2edfb6d /main.c
parenta1749c85c8ff077adfee4dda7739af1a9ab4cc28 (diff)
downloadgunmake-462e1759704912a245d0b88729e2ec858a480953.tar.gz
Formerly main.c.~101~
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/main.c b/main.c
index dd06aa4..f83f2fe 100644
--- a/main.c
+++ b/main.c
@@ -389,7 +389,6 @@ main (argc, argv, envp)
register char *cmd_defs;
register unsigned int cmd_defs_len, cmd_defs_idx;
char **p;
- time_t now;
struct dep *goals = 0;
register struct dep *lastgoal;
struct dep *read_makefiles;
@@ -816,8 +815,8 @@ main (argc, argv, envp)
build_vpath_lists ();
/* Mark files given with -o flags as very old (00:00:01.00 Jan 1, 1970)
- and as having been updated already, and files given with -W flags
- as brand new (time-stamp of now). */
+ and as having been updated already, and files given with -W flags as
+ brand new (time-stamp as far as possible into the future). */
if (old_files != 0)
for (p = old_files->list; *p != 0; ++p)
@@ -831,11 +830,10 @@ main (argc, argv, envp)
if (new_files != 0)
{
- now = time ((time_t *) 0);
for (p = new_files->list; *p != 0; ++p)
{
f = enter_command_line_file (*p);
- f->last_mtime = now;
+ f->last_mtime = NEW_MTIME;
}
}