chiark / gitweb /
Remove networkd checks
[elogind.git] / src / shared / unit-name.c
index 21b66913c9d1dae539f17db31dc2a8bd3f83a99e..86d6ce3df1583bb3fd67de6a6ccb3d9f0d4e73b3 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <errno.h>
 #include <string.h>
-#include <assert.h>
 
 #include "path-util.h"
 #include "bus-label.h"
@@ -100,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;
         }