aboutsummaryrefslogtreecommitdiffstats
path: root/mtools
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-07-02 09:49:45 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-07-02 09:49:45 -0700
commit65826b186226e3f729b9bd0220777913ef8a67ec (patch)
tree65275ca0448ea223ada84e478b7047201ed2d8f1 /mtools
parentcb88d31c15a2803950e81663e4d808a31ba4f8c0 (diff)
downloadsyslinux-65826b186226e3f729b9bd0220777913ef8a67ec.tar.gz
syslinux-65826b186226e3f729b9bd0220777913ef8a67ec.tar.xz
syslinux-65826b186226e3f729b9bd0220777913ef8a67ec.zip
Fix nuisance _FORTIFY_SOURCE failures
Fix a couple of _FORTIFY_SOURCE failures which are nuisance warnings, but fortunately not too hard to just plain avoid. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'mtools')
-rw-r--r--mtools/syslinux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mtools/syslinux.c b/mtools/syslinux.c
index f5b89c9e..97286c4d 100644
--- a/mtools/syslinux.c
+++ b/mtools/syslinux.c
@@ -246,7 +246,8 @@ int main(int argc, char *argv[])
syslinux_reset_adv(syslinux_adv);
/* This command may fail legitimately */
- system("mattrib -h -r -s s:/ldlinux.sys 2>/dev/null");
+ status = system("mattrib -h -r -s s:/ldlinux.sys 2>/dev/null");
+ (void)status; /* Keep _FORTIFY_SOURCE happy */
mtp = popen("mcopy -D o -D O -o - s:/ldlinux.sys", "w");
if (!mtp ||
@@ -323,7 +324,8 @@ int main(int argc, char *argv[])
/* This command may fail legitimately */
sprintf(command, "mattrib -h -r -s %s 2>/dev/null", target_file);
- system(command);
+ status = system(command);
+ (void)status; /* Keep _FORTIFY_SOURCE happy */
sprintf(command, "mmove -D o -D O s:/ldlinux.sys %s", target_file);
status = system(command);