summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-20 03:58:05 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-20 20:58:17 +0100
commita99badf5ed3b2207a19f5b44c549c5e7584dfd83 (patch)
tree8ec233a7b9ed7063362b8a7b69a7d161592dbdcb /src
parent3772995afa7df42c3a332fb085a27cb5d266b893 (diff)
sd-event: fix comparison functions
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-bus/sd-event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/sd-event.c b/src/libsystemd-bus/sd-event.c
index 5cb3bccc5a..eab92bded0 100644
--- a/src/libsystemd-bus/sd-event.c
+++ b/src/libsystemd-bus/sd-event.c
@@ -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)