1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

sd-event: fix comparison functions

This commit is contained in:
Lennart Poettering 2013-11-20 03:58:05 +01:00
parent 3772995afa
commit a99badf5ed

View File

@ -234,7 +234,7 @@ static int earliest_time_prioq_compare(const void *a, const void *b) {
if (x->time.next < y->time.next)
return -1;
if (x->time.next > y->time.next)
return -1;
return 1;
/* Stability for the rest */
if (x < y)
@ -267,7 +267,7 @@ static int latest_time_prioq_compare(const void *a, const void *b) {
if (x->time.next + x->time.accuracy < y->time.next + y->time.accuracy)
return -1;
if (x->time.next + x->time.accuracy > y->time.next + y->time.accuracy)
return -1;
return 1;
/* Stability for the rest */
if (x < y)