diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-09-26 09:35:49 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-09-26 09:35:49 -0700 |
commit | 3e16d2f40d5a9bcd3c64b291ee24c8be206f9f0a (patch) | |
tree | 803d16a5d5eda2392ebe3f6d88dc5df36bc6487e | |
parent | 183f2e0bffb527757780638b70020fab15ab6ec9 (diff) |
make pa_idxset_trivial_compare_func() do a full compare instea of just equakity check
-rw-r--r-- | src/pulsecore/idxset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/idxset.c b/src/pulsecore/idxset.c index 2de64069..24a28db7 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) { |