chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29283ea
)
unit-name: style fix in unit_name_is_template()
author
Michal Schmidt
<mschmidt@redhat.com>
Thu, 26 Jul 2012 08:13:26 +0000
(10:13 +0200)
committer
Michal Schmidt
<mschmidt@redhat.com>
Thu, 26 Jul 2012 08:14:33 +0000
(10:14 +0200)
to make it look like the newly added unit_name_is_instance()
src/shared/unit-name.c
patch
|
blob
|
history
diff --git
a/src/shared/unit-name.c
b/src/shared/unit-name.c
index e8328c321a05363c5ef4fe3f901e126731944618..e84d995dd79d29807ca09701c603e851ca365f2f 100644
(file)
--- a/
src/shared/unit-name.c
+++ b/
src/shared/unit-name.c
@@
-335,7
+335,8
@@
bool unit_name_is_template(const char *n) {
assert(n);
- if (!(p = strchr(n, '@')))
+ p = strchr(n, '@');
+ if (!p)
return false;
return p[1] == '.';