summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-08 10:40:33 +0000
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-08 10:40:33 +0000
commitc48e08ab5ea626cd131e3238ff6562301732c014 (patch)
tree3e3a84626684e5290e51449663618c58f2e432b5
parent03da418aa61d16ec8f9ac847640881826e9a9a73 (diff)
downloadgcc-c48e08ab5ea626cd131e3238ff6562301732c014.tar.gz
* toplev.c (randomize): Correct call to time().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69083 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/toplev.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c2621df17df..44b946beef5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * toplev.c (randomize): Correct call to time().
+
2003-07-08 Jakub Jelinek <jakub@redhat.com>
* unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 38374467181..b7bbe8aecbc 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1589,7 +1589,7 @@ randomize (void)
}
#else
{
- time_t now = time ();
+ time_t now = time (NULL);
if (now != (time_t)-1)
local_tick = (unsigned) now;