Mercurial > gnulib
changeset 24314:c72d717ed1bc
* modules/time_r: Depend on 'restrict'.
* lib/time_r.c (gmtime_r, localtime_r): Fix silly typo.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 08 Sep 2003 00:41:37 +0000 |
parents | eaed0e7d5702 |
children | 0457561b9fa6 |
files | ChangeLog lib/ChangeLog lib/time_r.c modules/time_r |
diffstat | 4 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Sep 07 07:12:10 2003 +0000 +++ b/ChangeLog Mon Sep 08 00:41:37 2003 +0000 @@ -1,3 +1,8 @@ +2003-09-07 Paul Eggert <eggert@twinsun.com> + + * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in + <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>. + 2003-09-06 Paul Eggert <eggert@twinsun.com> * MODULES.html.sh (func_all_modules): Add time_r.
--- a/lib/ChangeLog Sun Sep 07 07:12:10 2003 +0000 +++ b/lib/ChangeLog Mon Sep 08 00:41:37 2003 +0000 @@ -1,3 +1,9 @@ +2003-09-07 Paul Eggert <eggert@twinsun.com> + + * time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to + copy_tm_result. Bug reported by Simon Josefsson in + <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>. + 2003-09-06 Paul Eggert <eggert@twinsun.com> * time_r.c, time_r.h: New files.
--- a/lib/time_r.c Sun Sep 07 07:12:10 2003 +0000 +++ b/lib/time_r.c Mon Sep 08 00:41:37 2003 +0000 @@ -59,11 +59,11 @@ 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)); }