mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
sd-bus: voidify two calls to hashmap_iterate()
Coverity CID#1402304 and CID#1402307.
This commit is contained in:
parent
4337b0afae
commit
3d4d5abf2a
@ -305,7 +305,7 @@ _public_ const char* sd_bus_track_first(sd_bus_track *track) {
|
||||
track->modified = false;
|
||||
track->iterator = ITERATOR_FIRST;
|
||||
|
||||
hashmap_iterate(track->names, &track->iterator, NULL, (const void**) &n);
|
||||
(void) hashmap_iterate(track->names, &track->iterator, NULL, (const void**) &n);
|
||||
return n;
|
||||
}
|
||||
|
||||
@ -318,7 +318,7 @@ _public_ const char* sd_bus_track_next(sd_bus_track *track) {
|
||||
if (track->modified)
|
||||
return NULL;
|
||||
|
||||
hashmap_iterate(track->names, &track->iterator, NULL, (const void**) &n);
|
||||
(void) hashmap_iterate(track->names, &track->iterator, NULL, (const void**) &n);
|
||||
return n;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user