chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3772995
)
sd-event: fix comparison functions
author
Lennart Poettering
<lennart@poettering.net>
Wed, 20 Nov 2013 02:58:05 +0000
(
03:58
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 20 Nov 2013 19:58:17 +0000
(20:58 +0100)
src/libsystemd-bus/sd-event.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-bus/sd-event.c
b/src/libsystemd-bus/sd-event.c
index 5cb3bccc5aecc08e392f9b6221cbc19369b36a43..eab92bded0e0ad67ae27ddf3cfd22a3edd594e4b 100644
(file)
--- 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)