summaryrefslogtreecommitdiffstats
path: root/src/boot
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-12-16 20:07:35 +0100
committerGitHub <noreply@github.com>2021-12-16 20:07:35 +0100
commitd9338387d94ad611233cf0753801eefccfda432a (patch)
tree7729ba5c8bfd5952bd04ddf550a716d2a91eacc5 /src/boot
parentMerge pull request #21736 from yuwata/network-cleanups-for-drop-foreign-configs (diff)
parentmeson: drop three more single-use convenience libraries (diff)
downloadsystemd-d9338387d94ad611233cf0753801eefccfda432a.tar.xz
systemd-d9338387d94ad611233cf0753801eefccfda432a.zip
Merge pull request #21786 from keszybz/dirent-work
Make FOREACH_DIRENT and FOREACH_DIRENT_ALL declare the iterator variables
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/bootctl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c
index 51d304ea04..1a940f9462 100644
--- a/src/boot/bootctl.c
+++ b/src/boot/bootctl.c
@@ -184,7 +184,6 @@ finish:
static int enumerate_binaries(const char *esp_path, const char *path, const char *prefix) {
_cleanup_closedir_ DIR *d = NULL;
- struct dirent *de;
const char *p;
int c = 0, r;
@@ -658,7 +657,6 @@ static int copy_one_file(const char *esp_path, const char *name, bool force) {
}
static int install_binaries(const char *esp_path, bool force) {
- struct dirent *de;
_cleanup_closedir_ DIR *d = NULL;
int r = 0;
@@ -850,7 +848,6 @@ static int install_variables(const char *esp_path,
static int remove_boot_efi(const char *esp_path) {
_cleanup_closedir_ DIR *d = NULL;
- struct dirent *de;
const char *p;
int r, c = 0;