aboutsummaryrefslogtreecommitdiff
path: root/gas/listing.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-04-11 09:06:02 +0000
committerNick Clifton <nickc@redhat.com>2008-04-11 09:06:02 +0000
commitd5a35a5552aae7aa5559fd523e990c4f7fc2266e (patch)
tree1f68ecd88b59a3b4690de32b217e95d9de366a57 /gas/listing.c
parenta262ae964e725a02c056e832927c3bd16a689e07 (diff)
downloadgdb-d5a35a5552aae7aa5559fd523e990c4f7fc2266e.zip
gdb-d5a35a5552aae7aa5559fd523e990c4f7fc2266e.tar.gz
gdb-d5a35a5552aae7aa5559fd523e990c4f7fc2266e.tar.bz2
* listing.c (print_timestamp): Use localtime rather than
localtime_r since not all build environments provide the latter.
Diffstat (limited to 'gas/listing.c')
-rw-r--r--gas/listing.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/listing.c b/gas/listing.c
index adda391..6932e86 100644
--- a/gas/listing.c
+++ b/gas/listing.c
@@ -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);
}