* modules/time_r: Depend on 'restrict'.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Sep 2003 00:41:37 +0000 (00:41 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Sep 2003 00:41:37 +0000 (00:41 +0000)
* lib/time_r.c (gmtime_r, localtime_r): Fix silly typo.

ChangeLog
lib/ChangeLog
lib/time_r.c
modules/time_r

index 08fc4da..f516b12 100644 (file)
--- 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.
index 25364da..6b313c2 100644 (file)
@@ -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.
index 7368f3b..6c42504 100644 (file)
@@ -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));
 }
index 958f1ca..131f0e7 100644 (file)
@@ -8,6 +8,7 @@ m4/time_r.m4
 
 Depends-on:
 extensions
+restrict
 
 configure.ac:
 gl_TIME_R