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:
923041c
)
sd-bus: use proper ITERATOR_FIRST abstraction
author
Michal Schmidt
<mschmidt@redhat.com>
Mon, 4 Aug 2014 20:54:10 +0000
(22:54 +0200)
committer
Michal Schmidt
<mschmidt@redhat.com>
Mon, 15 Sep 2014 14:08:50 +0000
(16:08 +0200)
Do not assume hashmap iterators are pointers.
They may be structs in an alternative hashmap implementation.
src/libsystemd/sd-bus/bus-track.c
patch
|
blob
|
history
diff --git
a/src/libsystemd/sd-bus/bus-track.c
b/src/libsystemd/sd-bus/bus-track.c
index 0a3322a4ee9859251c65af766371fbf97a128e86..4b6a8bfee91e27d00f3cb68e878de797d8797f2d 100644
(file)
--- a/
src/libsystemd/sd-bus/bus-track.c
+++ b/
src/libsystemd/sd-bus/bus-track.c
@@
-245,7
+245,7
@@
_public_ const char* sd_bus_track_first(sd_bus_track *track) {
return NULL;
track->modified = false;
- track->iterator =
NULL
;
+ track->iterator =
ITERATOR_FIRST
;
hashmap_iterate(track->names, &track->iterator, (const void**) &n);
return n;