chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wrap a few *_FOREACH macros in curly braces
[elogind.git]
/
src
/
core
/
load-fragment.c
diff --git
a/src/core/load-fragment.c
b/src/core/load-fragment.c
index 3fbe680cf09e1362ebf6caeb92a357ee51569103..8e5be8731f326ca595a3e3759241610f7093adf0 100644
(file)
--- a/
src/core/load-fragment.c
+++ b/
src/core/load-fragment.c
@@
-3586,7
+3586,7
@@
int unit_load_fragment(Unit *u) {
return r;
/* Try to find an alias we can load this with */
return r;
/* Try to find an alias we can load this with */
- if (u->load_state == UNIT_STUB)
+ if (u->load_state == UNIT_STUB)
{
SET_FOREACH(t, u->names, i) {
if (t == u->id)
SET_FOREACH(t, u->names, i) {
if (t == u->id)
@@
-3599,6
+3599,7
@@
int unit_load_fragment(Unit *u) {
if (u->load_state != UNIT_STUB)
break;
}
if (u->load_state != UNIT_STUB)
break;
}
+ }
/* And now, try looking for it under the suggested (originally linked) path */
if (u->load_state == UNIT_STUB && u->fragment_path) {
/* And now, try looking for it under the suggested (originally linked) path */
if (u->load_state == UNIT_STUB && u->fragment_path) {
@@
-3628,7
+3629,7
@@
int unit_load_fragment(Unit *u) {
if (r < 0)
return r;
if (r < 0)
return r;
- if (u->load_state == UNIT_STUB)
+ if (u->load_state == UNIT_STUB)
{
SET_FOREACH(t, u->names, i) {
_cleanup_free_ char *z = NULL;
SET_FOREACH(t, u->names, i) {
_cleanup_free_ char *z = NULL;
@@
-3646,6
+3647,7
@@
int unit_load_fragment(Unit *u) {
if (u->load_state != UNIT_STUB)
break;
}
if (u->load_state != UNIT_STUB)
break;
}
+ }
}
return 0;
}
return 0;