From 964a98bf61af53f9db3f2a0bc4dccf694ff56b61 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Fri, 13 Mar 2015 15:27:36 +0000 Subject: [PATCH] work w/ apr_skiplist_insert() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1666482 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/motorz/motorz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/mpm/motorz/motorz.c b/server/mpm/motorz/motorz.c index 30c5473f578..81a830bfbf7 100644 --- a/server/mpm/motorz/motorz.c +++ b/server/mpm/motorz/motorz.c @@ -70,7 +70,7 @@ static int indexing_comp(void *a, void *b) apr_time_t t2 = (apr_time_t) (((motorz_timer_t *) b)->expires); AP_DEBUG_ASSERT(t1); AP_DEBUG_ASSERT(t2); - return ((t1 < t2) ? -1 : ((t1 > t2) ? 1 : 0)); + return ((t1 < t2) ? -1 : 1); } static int indexing_compk(void *ac, void *b) @@ -78,7 +78,7 @@ static int indexing_compk(void *ac, void *b) apr_time_t *t1 = (apr_time_t *) ac; apr_time_t t2 = (apr_time_t) (((motorz_timer_t *) b)->expires); AP_DEBUG_ASSERT(t2); - return ((*t1 < t2) ? -1 : ((*t1 > t2) ? 1 : 0)); + return ((*t1 < t2) ? -1 : 1); } static apr_status_t motorz_conn_pool_cleanup(void *baton) -- 2.47.3