From 17ac7cc5ca708d0b1a0fe8842d2699821d1c0a9a Mon Sep 17 00:00:00 2001 From: Albert Chin-A-Young Date: Wed, 14 Jan 2009 12:56:51 -0600 Subject: [PATCH] mktime.m4: remove K&R-style function prototypes * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes for the Sun C++ compiler. --- ChangeLog | 6 ++++++ m4/mktime.m4 | 9 +++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 766fde7bcf..395fefa36e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-15 Albert Chin-A-Young + + mktime.m4: remove K&R-style function prototypes + * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes + for the Sun C++ compiler. + 2009-01-14 Bruno Haible * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined diff --git a/m4/mktime.m4 b/m4/mktime.m4 index cc792af29e..223b9f1f40 100644 --- a/m4/mktime.m4 +++ b/m4/mktime.m4 @@ -68,16 +68,14 @@ spring_forward_gap () } static int -mktime_test1 (now) - time_t now; +mktime_test1 (time_t now) { struct tm *lt; return ! (lt = localtime (&now)) || mktime (lt) == now; } static int -mktime_test (now) - time_t now; +mktime_test (time_t now) { return (mktime_test1 (now) && mktime_test1 ((time_t) (time_t_max - now)) @@ -101,8 +99,7 @@ irix_6_4_bug () } static int -bigtime_test (j) - int j; +bigtime_test (int j) { struct tm tm; time_t now; -- 2.30.2