aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
diff options
context:
space:
mode:
authorGert Hulselmans <gerth@zytor.com>2010-07-05 14:04:46 +0200
committerGert Hulselmans <gerth@zytor.com>2010-07-05 14:04:46 +0200
commit90b30899b6a1c15b2c32d9214ee8ebe304773dae (patch)
tree2a0fd87ca5c4f54a545e84c115c895be9b902205 /com32/modules
parent601712aef7489e68d372a8b7290959a572cb67a3 (diff)
downloadsyslinux-90b30899b6a1c15b2c32d9214ee8ebe304773dae.tar.gz
syslinux-90b30899b6a1c15b2c32d9214ee8ebe304773dae.tar.xz
syslinux-90b30899b6a1c15b2c32d9214ee8ebe304773dae.zip
chain.c32: Put declaration of *stage2 before common code
Put declaration of *stage2 before common code. Signed-off-by: Gert Hulselmans <gerth@zytor.com>
Diffstat (limited to 'com32/modules')
-rw-r--r--com32/modules/chain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 7a2c8d4f..48a83d2a 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -1629,7 +1629,7 @@ int main(int argc, char *argv[])
char config_file[89];
/* 0x270: start of code (after jump from 0x200) */
char codestart[1];
- } __attribute__ ((packed));
+ } __attribute__ ((packed)) *stage2;
if (data[ndata].size < sizeof(struct grub_stage2_patch_area)) {
error
@@ -1637,7 +1637,7 @@ int main(int argc, char *argv[])
goto bail;
}
- struct grub_stage2_patch_area *stage2 = data[ndata].data;
+ stage2 = data[ndata].data;
/*
* Check the compatibility version number to see if we loaded a real