From: Lennart Poettering Date: Fri, 19 Aug 2016 17:30:06 +0000 (+0200) Subject: core: let's use set_contains() where appropriate X-Git-Tag: v232~256^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=390bc2b149a09661c81df404692b191e20dac7a0;p=thirdparty%2Fsystemd.git core: let's use set_contains() where appropriate --- diff --git a/src/core/unit.c b/src/core/unit.c index 03ee6424fa3..de22f657c6d 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -114,7 +114,7 @@ bool unit_has_name(Unit *u, const char *name) { assert(u); assert(name); - return !!set_get(u->names, (char*) name); + return set_contains(u->names, (char*) name); } static void unit_init(Unit *u) {