* listing.c (print_timestamp): Use localtime rather than
authorNick Clifton <nickc@redhat.com>
Fri, 11 Apr 2008 09:06:02 +0000 (09:06 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 11 Apr 2008 09:06:02 +0000 (09:06 +0000)
        localtime_r since not all build environments provide the latter.

gas/ChangeLog
gas/listing.c

index f0bb52b0491237fb44d60647c815f990d40b834c..84f1eeefba3a5f1826800efacc66bf897828e748 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-11  Nick Clifton  <nickc@redhat.com>
+
+       * listing.c (print_timestamp): Use localtime rather than
+       localtime_r since not all build environments provide the latter.
+
 2008-04-10  H.J. Lu  <hongjiu.lu@intel.com>
 
        * NEWS: Mention -msse-check=[none|error|warning].
index adda39118138eed9e5654a06251110357b7eb009..6932e8679b48233e3c5b987e074aa5b3a86eaeba 100644 (file)
@@ -1065,12 +1065,12 @@ static void
 print_timestamp (void)
 {
   const time_t now = time (NULL);
-  struct tm timestamp;
+  struct tm timestamp;
   char stampstr[MAX_DATELEN];
 
   /* Any portable way to obtain subsecond values???  */
-  localtime_r (&now, &timestamp);
-  strftime (stampstr, MAX_DATELEN, "%Y-%m-%dT%H:%M:%S.000%z", &timestamp);
+  timestamp = localtime (&now);
+  strftime (stampstr, MAX_DATELEN, "%Y-%m-%dT%H:%M:%S.000%z", timestamp);
   fprintf (list_file, _("\n time stamp    \t: %s\n\n"), stampstr);
 }
 
This page took 0.028192 seconds and 4 git commands to generate.