summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-08-19 19:30:06 +0200
committerLennart Poettering <lennart@poettering.net>2016-08-22 16:14:21 +0200
commit390bc2b149a09661c81df404692b191e20dac7a0 (patch)
tree2e3b5a073aebf1df8b30abd4a4ae710c2a88e627
parent014c4c98ba85544d75a8447eb7b78c1953d9e3b7 (diff)
core: let's use set_contains() where appropriate
-rw-r--r--src/core/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 03ee6424fa..de22f657c6 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) {