From 33aa9014cb9932f6f23a7ba512660dc7fe3c4615 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 12 Dec 2009 01:27:11 +0100 Subject: cross-compile on freeBSD, remove bzero --- package/xfsprogs/patches/patch-fsr_xfs_fsr_c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/xfsprogs/patches/patch-fsr_xfs_fsr_c (limited to 'package/xfsprogs/patches/patch-fsr_xfs_fsr_c') diff --git a/package/xfsprogs/patches/patch-fsr_xfs_fsr_c b/package/xfsprogs/patches/patch-fsr_xfs_fsr_c new file mode 100644 index 000000000..9a305b9e5 --- /dev/null +++ b/package/xfsprogs/patches/patch-fsr_xfs_fsr_c @@ -0,0 +1,11 @@ +--- xfsprogs-3.0.0.orig/fsr/xfs_fsr.c 2009-02-04 23:29:25.000000000 +0100 ++++ xfsprogs-3.0.0/fsr/xfs_fsr.c 2009-12-12 00:53:17.000000000 +0100 +@@ -275,7 +275,7 @@ main(int argc, char **argv) + progname, mtab); + exit(1); + } +- bzero(&mntpref, sizeof(mntpref)); ++ memset(&mntpref, 0, sizeof(mntpref)); + if (S_ISDIR(sb.st_mode)) + mntpref.mnt_dir = argname; + else -- cgit v1.2.3