diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-08-19 19:30:06 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-08-22 16:14:21 +0200 |
commit | 390bc2b149a09661c81df404692b191e20dac7a0 (patch) | |
tree | 2e3b5a073aebf1df8b30abd4a4ae710c2a88e627 /src/core | |
parent | 014c4c98ba85544d75a8447eb7b78c1953d9e3b7 (diff) |
core: let's use set_contains() where appropriate
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/unit.c | 2 |
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) { |