[tz] [PROPOSED PATCH] Port 'bool' usage to clang 3.4.

Paul Eggert eggert at cs.ucla.edu
Tue Aug 26 02:42:06 UTC 2014


* date.c (convert, reset):
Fix prototype to match function, as the C standard requires.
---
 date.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/date.c b/date.c
index 3b44c94..b77de79 100644
--- a/date.c
+++ b/date.c
@@ -55,14 +55,14 @@ extern char *		tzname[2];
 static int		retval = EXIT_SUCCESS;
 
 static void		checkfinal(char const *, bool, time_t, time_t);
-static time_t		convert(const char *, int, time_t);
+static time_t		convert(const char *, bool, time_t);
 static void		display(const char *, time_t);
 static void		dogmt(void);
 static void		errensure(void);
 static void		iffy(time_t, time_t, const char *, const char *);
 static const char *	nondigit(const char *);
 static void		oops(const char *);
-static void		reset(time_t, int);
+static void		reset(time_t, bool);
 static void		timeout(FILE *, const char *, const struct tm *);
 static void		usage(void);
 static void		wildinput(const char *, const char *,
-- 
1.9.1



More information about the tz mailing list