From: Lennart Poettering Date: Fri, 26 Sep 2008 16:35:49 +0000 (-0700) Subject: make pa_idxset_trivial_compare_func() do a full compare instea of just equakity check X-Git-Tag: submit/2.0-panda/20130828.192557~2659 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e16d2f40d5a9bcd3c64b291ee24c8be206f9f0a;p=profile%2Fivi%2Fpulseaudio-panda.git make pa_idxset_trivial_compare_func() do a full compare instea of just equakity check --- diff --git a/src/pulsecore/idxset.c b/src/pulsecore/idxset.c index 2de6406..24a28db 100644 --- a/src/pulsecore/idxset.c +++ b/src/pulsecore/idxset.c @@ -80,7 +80,7 @@ unsigned pa_idxset_trivial_hash_func(const void *p) { } int pa_idxset_trivial_compare_func(const void *a, const void *b) { - return a != b; + return a < b ? -1 : (a > b ? 1 : 0); } pa_idxset* pa_idxset_new(pa_hash_func_t hash_func, pa_compare_func_t compare_func) {