diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-11-11 12:08:26 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-11-11 16:31:32 +0100 |
commit | 12e2b70f9b849e54018f147b8a11154cd5e2dcf6 (patch) | |
tree | 6f887f1589d85f1da57bd81b8e06d5fa3982a4e1 /src/delta | |
parent | 5ea173a91b2093664a9ebb9add678edd6f5d1efd (diff) | |
download | systemd-12e2b70f9b849e54018f147b8a11154cd5e2dcf6.tar.gz |
nulstr-util: Declare NULSTR_FOREACH() iterator inline
Diffstat (limited to 'src/delta')
-rw-r--r-- | src/delta/delta.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/delta/delta.c b/src/delta/delta.c index da648bc837..db6e957fc9 100644 --- a/src/delta/delta.c +++ b/src/delta/delta.c @@ -371,7 +371,6 @@ static int enumerate_dir( static int should_skip_path(const char *prefix, const char *suffix) { #if HAVE_SPLIT_USR _cleanup_free_ char *target = NULL, *dirname = NULL; - const char *p; dirname = path_join(prefix, suffix); if (!dirname) @@ -400,7 +399,6 @@ static int should_skip_path(const char *prefix, const char *suffix) { } static int process_suffix(const char *suffix, const char *onlyprefix) { - const char *p; char *f, *key; OrderedHashmap *top, *bottom, *drops, *h; int r = 0, k, n_found = 0; @@ -477,7 +475,6 @@ finish: } static int process_suffixes(const char *onlyprefix) { - const char *n; int n_found = 0, r; NULSTR_FOREACH(n, suffixes) { @@ -492,8 +489,6 @@ static int process_suffixes(const char *onlyprefix) { } static int process_suffix_chop(const char *arg) { - const char *p; - assert(arg); if (!path_is_absolute(arg)) |