summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Hartmann <sultan@gentoo.org>2022-04-05 04:39:52 +0100
committerSam James <sam@gentoo.org>2022-04-05 04:40:26 +0100
commit067e25699b6489f41459d159976a8231a53f9a82 (patch)
tree630f68945386e058183e1a09169868f9152820c9 /sys-fs/extundelete
parentsys-fs/extundelete: fix build with clang (diff)
downloadgentoo-067e25699b6489f41459d159976a8231a53f9a82.tar.gz
gentoo-067e25699b6489f41459d159976a8231a53f9a82.tar.bz2
gentoo-067e25699b6489f41459d159976a8231a53f9a82.zip
sys-fs/extundelete: swap Clang patch
Closes: https://bugs.gentoo.org/732284 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-fs/extundelete')
-rw-r--r--sys-fs/extundelete/files/extundelete-0.2.4-clang.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys-fs/extundelete/files/extundelete-0.2.4-clang.patch b/sys-fs/extundelete/files/extundelete-0.2.4-clang.patch
index aead9bd910f1..711a8db8ad3d 100644
--- a/sys-fs/extundelete/files/extundelete-0.2.4-clang.patch
+++ b/sys-fs/extundelete/files/extundelete-0.2.4-clang.patch
@@ -1,11 +1,12 @@
+https://bugs.gentoo.org/732284
--- a/src/extundelete.cc
+++ b/src/extundelete.cc
-@@ -1268,7 +1268,7 @@
+@@ -1268,7 +1268,7 @@ static ext2_ino_t find_inode(ext2_filsys fs, ext2_filsys jfs, struct ext2_inode
*new_ino = 0;
priv->ret_ino = new_ino;
priv->curr_name = curr_part;
- struct dir_context ctx = {search_flags, DIRENT_FLAG_INCLUDE_REMOVED,
-+ struct dir_context ctx = {static_cast<unsigned int>(search_flags), DIRENT_FLAG_INCLUDE_REMOVED,
++ struct dir_context ctx = {(ext2_ino_t)search_flags, DIRENT_FLAG_INCLUDE_REMOVED,
buf, match_name2, priv, 0};
errcode_t code = extundelete_block_iterate3(fs, *inode, BLOCK_FLAG_DATA_ONLY,
NULL, match_ino, &ctx);