core: let's use set_contains() where appropriate

This commit is contained in:
Lennart Poettering
2016-08-22 16:14:21 +02:00
parent 014c4c98ba
commit 390bc2b149
+1 -1
View File
@@ -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) {