projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
183f2e0
)
make pa_idxset_trivial_compare_func() do a full compare instea of just equakity check
author
Lennart Poettering
<lennart@poettering.net>
Fri, 26 Sep 2008 16:35:49 +0000
(09:35 -0700)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 26 Sep 2008 16:35:49 +0000
(09:35 -0700)
src/pulsecore/idxset.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/idxset.c
b/src/pulsecore/idxset.c
index
2de6406
..
24a28db
100644
(file)
--- 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) {