Skip to content

Commit b119fac

Browse files
committed
core: minor coding style changes
1 parent 952713b commit b119fac

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/core/load-dropin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ static int process_deps(Unit *u, UnitDependency dependency, const char *dir_suff
5151
return r;
5252

5353
STRV_FOREACH(p, paths) {
54-
const char *entry;
5554
_cleanup_free_ char *target = NULL;
55+
const char *entry;
5656

5757
entry = basename(*p);
5858

src/core/load-dropin.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
/* Read service data supplementary drop-in directories */
1414

1515
static inline int unit_find_dropin_paths(Unit *u, char ***paths) {
16+
assert(u);
17+
1618
return unit_file_find_dropin_conf_paths(NULL,
1719
u->manager->lookup_paths.search_path,
1820
u->manager->unit_path_cache,

src/shared/dropin.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ static inline int unit_file_find_dropin_conf_paths(
3636
Set *unit_path_cache,
3737
Set *names,
3838
char ***paths) {
39+
3940
return unit_file_find_dropin_paths(original_root,
4041
lookup_path,
4142
unit_path_cache,

0 commit comments

Comments
 (0)