aboutsummaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2014-01-17 16:54:32 -0800
committerH. Peter Anvin <hpa@zytor.com>2014-01-17 16:55:34 -0800
commit12eae5ce91273ba9a98b7fe9a838f5ef2f9044b7 (patch)
tree871283162279ea3cff76c9c776ea024c4839c4dd /win
parent39311d7551b2834c67f3fd3ac197f8f634afb2d1 (diff)
downloadsyslinux-12eae5ce91273ba9a98b7fe9a838f5ef2f9044b7.tar.gz
syslinux-12eae5ce91273ba9a98b7fe9a838f5ef2f9044b7.tar.xz
syslinux-12eae5ce91273ba9a98b7fe9a838f5ef2f9044b7.zip
installer: Add sparse address space annotations to the syslinux image
Add sparse address space annotations for the syslinux boot image, to make it easier to catch errors that break the DOS installer build again. Use "make CC=cgcc" to run sparse. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'win')
-rw-r--r--win/syslinux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/syslinux.c b/win/syslinux.c
index c291f005..639844e7 100644
--- a/win/syslinux.c
+++ b/win/syslinux.c
@@ -416,8 +416,8 @@ int main(int argc, char *argv[])
}
/* Write ldlinux.sys file */
- if (!WriteFile(f_handle, syslinux_ldlinux, syslinux_ldlinux_len,
- &bytes_written, NULL) ||
+ if (!WriteFile(f_handle, (const char _force *)syslinux_ldlinux,
+ syslinux_ldlinux_len, &bytes_written, NULL) ||
bytes_written != syslinux_ldlinux_len) {
error("Could not write ldlinux.sys");
exit(1);
@@ -533,8 +533,8 @@ map_done:
}
/* Write ldlinux.c32 file */
- if (!WriteFile(f_handle, syslinux_ldlinuxc32, syslinux_ldlinuxc32_len,
- &bytes_written, NULL) ||
+ if (!WriteFile(f_handle, (const char _force *)syslinux_ldlinuxc32,
+ syslinux_ldlinuxc32_len, &bytes_written, NULL) ||
bytes_written != syslinux_ldlinuxc32_len) {
error("Could not write ldlinux.c32");
exit(1);