Mercurial > hg > octave-nkf > gnulib-hg
changeset 4623:13cc36518e0b
* 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 | 56c98a2f17f0 |
children | f15716712279 |
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 +++ b/ChangeLog @@ -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 +++ b/lib/ChangeLog @@ -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 +++ b/lib/time_r.c @@ -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)); }