OSDN Git Service

* toplev.c (randomize): Correct call to time().
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jul 2003 10:40:33 +0000 (10:40 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jul 2003 10:40:33 +0000 (10:40 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69083 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/toplev.c

index c2621df..44b946b 100644 (file)
@@ -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
index 3837446..b7bbe8a 100644 (file)
@@ -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;