summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-07 12:52:58 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-15 22:50:00 +0100
commitaf3b864d76cf916a026b7877099791811b348fdf (patch)
tree40db7161280edc4dcc24b8a0cd20514f45a3ea1f /src/portable
parentc7f0d9e5acef3f62db3640d5ab7446241c022b35 (diff)
downloadsystemd-af3b864d76cf916a026b7877099791811b348fdf.tar.gz
Define FOREACH_DIRENT through FOREACH_DIRENT_ALL
As in the previous commit, 'de' is used as the iterator variable name.
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/portable.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c
index 8b088f3e32..be311f94c4 100644
--- a/src/portable/portable.c
+++ b/src/portable/portable.c
@@ -244,7 +244,6 @@ static int extract_now(
STRV_FOREACH(i, paths.search_path) {
_cleanup_free_ char *resolved = NULL;
_cleanup_closedir_ DIR *d = NULL;
- struct dirent *de;
r = chase_symlinks_and_opendir(*i, where, 0, &resolved, &d);
if (r < 0) {
@@ -1492,7 +1491,6 @@ int portable_detach(
_cleanup_set_free_ Set *unit_files = NULL, *markers = NULL;
_cleanup_closedir_ DIR *d = NULL;
const char *where, *item;
- struct dirent *de;
int ret = 0;
int r;
@@ -1662,7 +1660,6 @@ static int portable_get_state_internal(
_cleanup_set_free_ Set *unit_files = NULL;
_cleanup_closedir_ DIR *d = NULL;
const char *where;
- struct dirent *de;
int r;
assert(name_or_path);