aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/e2fsprogs
diff options
context:
space:
mode:
authormandree <mandree@FreeBSD.org>2013-03-13 16:11:32 +0800
committermandree <mandree@FreeBSD.org>2013-03-13 16:11:32 +0800
commitbe09fb87095ef891dfe9ec723b8d78f4e19423a2 (patch)
tree9a25629fb09f2bde1cb846e4089e42bb24a2ef69 /sysutils/e2fsprogs
parent9e2b3ef478c9a2ad8a58f49fcae196f8a182ea7b (diff)
downloadfreebsd-ports-gnome-be09fb87095ef891dfe9ec723b8d78f4e19423a2.tar.gz
freebsd-ports-gnome-be09fb87095ef891dfe9ec723b8d78f4e19423a2.tar.zst
freebsd-ports-gnome-be09fb87095ef891dfe9ec723b8d78f4e19423a2.zip
Fix build with clang.
(The issue has also been reported to the upstream maintainer.) PR: ports/176908 Submitted by: Beeblebrox <zaphod@berentweb.com>
Diffstat (limited to 'sysutils/e2fsprogs')
-rw-r--r--sysutils/e2fsprogs/files/patch-lib__ext2fs__gen_bitmap64.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/e2fsprogs/files/patch-lib__ext2fs__gen_bitmap64.c b/sysutils/e2fsprogs/files/patch-lib__ext2fs__gen_bitmap64.c
new file mode 100644
index 000000000000..158ad67235fd
--- /dev/null
+++ b/sysutils/e2fsprogs/files/patch-lib__ext2fs__gen_bitmap64.c
@@ -0,0 +1,11 @@
+--- ./lib/ext2fs/gen_bitmap64.c.orig 2013-03-13 09:07:19.000000000 +0100
++++ ./lib/ext2fs/gen_bitmap64.c 2013-03-13 09:07:37.000000000 +0100
+@@ -657,7 +657,7 @@
+ if ((block < bmap->start) || (block+num-1 > bmap->end)) {
+ ext2fs_warn_bitmap(EXT2_ET_BAD_BLOCK_TEST, block,
+ bmap->description);
+- return;
++ return EINVAL;
+ }
+
+ return bmap->bitmap_ops->test_clear_bmap_extent(bmap, block, num);