summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-02-24 16:18:43 +0100
committerDaniel Mack <daniel@zonque.org>2015-02-24 16:26:30 +0100
commitf9bf3e260c480f7b660bec3f78a13f52a46ec34d (patch)
treeeb2cf5db5fdab580eb9126e193778927807522f6 /src
parent95d383ee47db488f182048cfd6846f2e6b859f2b (diff)
shared/unit-name: fix gcc5 warning
Fix the following gcc5 warning: CC src/shared/libsystemd_shared_la-unit-name.lo src/shared/unit-name.c: In function 'unit_name_is_valid': src/shared/unit-name.c:102:34: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if (!template_ok == TEMPLATE_VALID && at+1 == e) ^
Diffstat (limited to 'src')
-rw-r--r--src/shared/unit-name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/unit-name.c b/src/shared/unit-name.c
index 0cc06f4f8..86d6ce3df 100644
--- a/src/shared/unit-name.c
+++ b/src/shared/unit-name.c
@@ -99,7 +99,7 @@ bool unit_name_is_valid(const char *n, enum template_valid template_ok) {
if (at == n)
return false;
- if (!template_ok == TEMPLATE_VALID && at+1 == e)
+ if (template_ok != TEMPLATE_VALID && at+1 == e)
return false;
}