Exit status of test-s390x(.c)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/clisp?expand=0&rev=100
This commit is contained in:
Dr. Werner Fink 2018-02-19 12:11:32 +00:00 committed by Git OBS Bridge
parent 2610ec5eb8
commit 52c85abc0d

View File

@ -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;
}