]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
mktime fix to avoid a diagnostic.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Jun 2005 19:08:21 +0000 (19:08 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Jun 2005 19:08:21 +0000 (19:08 +0000)
lib/ChangeLog

index a5a50436fe5dddb1ec6c9d43f85e0736c339c759..827b39a92323b537421460f2dfebbd33ef8bc1a2 100644 (file)
@@ -1,5 +1,12 @@
 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
+       (ranged_convert): Don't save conversion in a temporary struct.
+       This causes a warning with GCC 4.0.0, and anyway in the typical
+       case it's not worth the extra 100 bytes or so of code.
+       (ranged_convert, __mktime_internal): When calling a function via a
+       pointer P, use P () rather than (*P) (), as we now assume C89 or better.
+
        * readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
        "who -r" failed to give output.  Problem reported by Tim Waugh.