From b6d8272551435098c716c546a5201206517e5da9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 6 Oct 2015 18:32:19 +0000 Subject: modernize style: "return" is not a function --- test-strptime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test-strptime.c') diff --git a/test-strptime.c b/test-strptime.c index bedc7758..d8799e94 100644 --- a/test-strptime.c +++ b/test-strptime.c @@ -9,6 +9,6 @@ main(void) { struct tm tm; const char input[] = "2014-01-04"; - return( ! (input+10 == strptime(input, "%Y-%m-%d", &tm) && - 114 == tm.tm_year && 0 == tm.tm_mon && 4 == tm.tm_mday)); + return ! (strptime(input, "%Y-%m-%d", &tm) == input + 10 && + tm.tm_year == 114 && tm.tm_mon == 0 && tm.tm_mday == 4); } -- cgit v1.2.3