summaryrefslogtreecommitdiff
path: root/libinstaller/setadv.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-19 16:52:36 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-19 16:52:36 -0800
commitbc7ea9c422f98f969dca78b4736718e3c44edd9b (patch)
tree0f4587c25fb8260511c9b7fb899555ce1510ffbe /libinstaller/setadv.c
parentfe7dbcbaec8b5210604f942f322cecf55a37abe0 (diff)
downloadsyslinux-bc7ea9c422f98f969dca78b4736718e3c44edd9b.tar.gz
Whitespace cleanup...syslinux-3.62-pre11
Diffstat (limited to 'libinstaller/setadv.c')
-rw-r--r--libinstaller/setadv.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libinstaller/setadv.c b/libinstaller/setadv.c
index 4756a97d..c768d1b1 100644
--- a/libinstaller/setadv.c
+++ b/libinstaller/setadv.c
@@ -1,5 +1,5 @@
/* ----------------------------------------------------------------------- *
- *
+ *
* Copyright 2007-2008 H. Peter Anvin - All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
@@ -37,11 +37,11 @@ static void cleanup_adv(unsigned char *advbuf)
/* Make sure both copies agree, and update the checksum */
set_32(advbuf, ADV_MAGIC1);
-
+
csum = ADV_MAGIC2;
for (i = 8; i < ADV_SIZE-4; i += 4)
csum -= get_32(advbuf+i);
-
+
set_32(advbuf+4, csum);
set_32(advbuf+ADV_SIZE-4, ADV_MAGIC3);
@@ -157,4 +157,3 @@ int syslinux_validate_adv(unsigned char *advbuf)
return -1;
}
}
-