From c399ed923d6fa4bf731455d485cac5f00e060806 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 17 Apr 2022 08:00:20 +0900 Subject: [PATCH] sd-bus: use hashmap_contains() and drop unnecessary cast --- src/libsystemd/sd-bus/bus-track.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-bus/bus-track.c b/src/libsystemd/sd-bus/bus-track.c index c56bd03fc66..4c44162108c 100644 --- a/src/libsystemd/sd-bus/bus-track.c +++ b/src/libsystemd/sd-bus/bus-track.c @@ -287,7 +287,7 @@ _public_ const char* sd_bus_track_contains(sd_bus_track *track, const char *name if (!track) /* Let's consider a NULL object equivalent to an empty object */ return NULL; - return hashmap_get(track->names, (void*) name) ? name : NULL; + return hashmap_contains(track->names, name) ? name : NULL; } _public_ const char* sd_bus_track_first(sd_bus_track *track) {