From 52c85abc0d70d5b5bedf5d96473042d1c33561019efe42722144e90362498b11 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 19 Feb 2018 12:11:32 +0000 Subject: [PATCH] Exit status of test-s390x(.c) OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/clisp?expand=0&rev=100 --- test-s390x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test-s390x.c b/test-s390x.c index f0e77f6..1bf1b38 100644 --- a/test-s390x.c +++ b/test-s390x.c @@ -227,8 +227,7 @@ int main() now_local = *(localtime(&now)); now_gm = *(gmtime(&now)); - long int dayswest = - (now_gm.tm_year < now_local.tm_year ? -1 : + long int dayswest = (now_gm.tm_year < now_local.tm_year ? -1 : now_gm.tm_year > now_local.tm_year ? 1 : (now_gm.tm_mon < now_local.tm_mon ? -1 : now_gm.tm_mon > now_local.tm_mon ? 1 : @@ -240,5 +239,5 @@ int main() unsigned long int hours_since_1900 = ((unsigned long)now / 3600) - hourswest + 613608; unsigned long int days_since_1900 = (hours_since_1900 + 6) / 24; int candles = hebrew_calendar_hanukka_candles(days_since_1900); - return printf("candles = %d\n", candles); + return printf("candles = %d\n", candles) > 0; }