diff options
Diffstat (limited to 'pkg/e2fsprogs/patch/0003-Remove-unused-variables.patch')
| -rw-r--r-- | pkg/e2fsprogs/patch/0003-Remove-unused-variables.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkg/e2fsprogs/patch/0003-Remove-unused-variables.patch b/pkg/e2fsprogs/patch/0003-Remove-unused-variables.patch new file mode 100644 index 00000000..c97c2509 --- /dev/null +++ b/pkg/e2fsprogs/patch/0003-Remove-unused-variables.patch @@ -0,0 +1,44 @@ +From 6276beeab62b8dc949b8179f64738ea4958e4870 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Fri, 5 Jun 2020 01:29:07 -0700 +Subject: [PATCH] Remove unused variables + +--- + e2fsck/rehash.c | 2 +- + lib/ext2fs/swapfs.c | 3 +-- + 2 files changed, 2 insertions(+), 3 deletions(-) + +diff --git a/e2fsck/rehash.c b/e2fsck/rehash.c +index 1616d07a..b356b92d 100644 +--- a/e2fsck/rehash.c ++++ b/e2fsck/rehash.c +@@ -109,7 +109,7 @@ static int fill_dir_block(ext2_filsys fs, + void *priv_data) + { + struct fill_dir_struct *fd = (struct fill_dir_struct *) priv_data; +- struct hash_entry *new_array, *ent; ++ struct hash_entry *ent; + struct ext2_dir_entry *dirent; + char *dir; + unsigned int offset, dir_offset, rec_len, name_len; +diff --git a/lib/ext2fs/swapfs.c b/lib/ext2fs/swapfs.c +index a3d5d16a..56e10c36 100644 +--- a/lib/ext2fs/swapfs.c ++++ b/lib/ext2fs/swapfs.c +@@ -456,12 +456,11 @@ errcode_t ext2fs_dirent_swab_out2(ext2_filsys fs, char *buf, + { + errcode_t retval; + char *p, *end; +- unsigned int rec_len, left; ++ unsigned int rec_len; + struct ext2_dir_entry *dirent; + + p = buf; + end = buf + size; +- left = size; + while (p < end) { + dirent = (struct ext2_dir_entry *) p; + retval = ext2fs_get_rec_len(fs, dirent, &rec_len); +-- +2.27.0 + |
