chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs-util: introduce btrfs_is_filesystem() and make use of it where appropriate
[elogind.git]
/
src
/
shared
/
unit-name.c
diff --git
a/src/shared/unit-name.c
b/src/shared/unit-name.c
index 21b66913c9d1dae539f17db31dc2a8bd3f83a99e..86d6ce3df1583bb3fd67de6a6ccb3d9f0d4e73b3 100644
(file)
--- a/
src/shared/unit-name.c
+++ b/
src/shared/unit-name.c
@@
-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;
}