From 19de357924ce11db4f950d862c391c26dc90decb Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 8 Sep 2003 00:41:37 +0000 Subject: [PATCH] * modules/time_r: Depend on 'restrict'. * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo. --- ChangeLog | 5 +++++ lib/ChangeLog | 6 ++++++ lib/time_r.c | 4 ++-- modules/time_r | 1 + 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 08fc4da27..f516b1212 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-09-07 Paul Eggert + + * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in + . + 2003-09-06 Paul Eggert * MODULES.html.sh (func_all_modules): Add time_r. diff --git a/lib/ChangeLog b/lib/ChangeLog index 25364daa4..6b313c23f 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2003-09-07 Paul Eggert + + * time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to + copy_tm_result. Bug reported by Simon Josefsson in + . + 2003-09-06 Paul Eggert * time_r.c, time_r.h: New files. diff --git a/lib/time_r.c b/lib/time_r.c index 7368f3bdf..6c4250412 100644 --- a/lib/time_r.c +++ b/lib/time_r.c @@ -59,11 +59,11 @@ ctime_r (time_t const *t, char *buf) struct tm * gmtime_r (time_t const * restrict t, struct tm * restrict tp) { - return copy_tm_result (gmtime (t)); + return copy_tm_result (tp, gmtime (t)); } struct tm * localtime_r (time_t const * restrict t, struct tm * restrict tp) { - return copy_tm_result (localtime (t)); + return copy_tm_result (tp, localtime (t)); } diff --git a/modules/time_r b/modules/time_r index 958f1ca8b..131f0e745 100644 --- a/modules/time_r +++ b/modules/time_r @@ -8,6 +8,7 @@ m4/time_r.m4 Depends-on: extensions +restrict configure.ac: gl_TIME_R -- 2.11.0