summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-08-30 09:46:45 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-08-30 09:46:45 -0700
commit0396e62e734b8d919f395adfe09d0046b840a823 (patch)
treea7b1f734ec2541e84b2a7da85dbac33cfad1eda4
parent53793f217eef16ac53000730fa364efb3b3f4a7a (diff)
downloadsyslinux-4.00-pre4.tar.gz
core: booleanize the return value from *_load_config()syslinux-4.00-pre4
The *_load_config() file is specific to each filesystem, and documented to return 0 or 1. Make sure the return value actually is zero or one. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/fs/ext2/ext2.c2
-rw-r--r--core/fs/iso9660/iso9660.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/fs/ext2/ext2.c b/core/fs/ext2/ext2.c
index 7db45fc1..8c44b3ae 100644
--- a/core/fs/ext2/ext2.c
+++ b/core/fs/ext2/ext2.c
@@ -692,7 +692,7 @@ static int ext2_load_config(void)
regs.edi.w[0] = OFFS_WRT(ConfigName, 0);
call16(core_open, &regs, &regs);
- return regs.eflags.l & EFLAGS_ZF;
+ return !!(regs.eflags.l & EFLAGS_ZF);
}
diff --git a/core/fs/iso9660/iso9660.c b/core/fs/iso9660/iso9660.c
index eb9dede8..e060b13d 100644
--- a/core/fs/iso9660/iso9660.c
+++ b/core/fs/iso9660/iso9660.c
@@ -456,7 +456,7 @@ static int iso_load_config(void)
regs.edi.w[0] = OFFS_WRT(ConfigName, 0);
call16(core_open, &regs, &regs);
- return regs.eflags.l & EFLAGS_ZF;
+ return !!(regs.eflags.l & EFLAGS_ZF);
}