Use "p->sum -= checksum()" style for setting checksums.
Some code cleared the original checksum and then calculated a new one,
others manipulated the checksum range to not include the old
checksum. However, this was error prone - use the "-=" syntax
consistently to reduce possible errors.
diff --git a/src/post.c b/src/post.c
index 638f95a..b018935 100644
--- a/src/post.c
+++ b/src/post.c
@@ -209,7 +209,7 @@
boot_prep();
// Setup bios checksum.
- BiosChecksum = -checksum((u8*)BUILD_BIOS_ADDR, BUILD_BIOS_SIZE - 1);
+ BiosChecksum -= checksum((u8*)BUILD_BIOS_ADDR, BUILD_BIOS_SIZE);
// Prep for boot process.
make_bios_readonly();