[syslinux:master] chain.c32: Put declaration of *stage2 before common code
syslinux-bot for Gert Hulselmans
gerth at zytor.com
Mon Jul 5 16:06:03 PDT 2010
Commit-ID: 90b30899b6a1c15b2c32d9214ee8ebe304773dae
Gitweb: http://syslinux.zytor.com/commit/90b30899b6a1c15b2c32d9214ee8ebe304773dae
Author: Gert Hulselmans <gerth at zytor.com>
AuthorDate: Mon, 5 Jul 2010 14:04:46 +0200
Committer: Gert Hulselmans <gerth at zytor.com>
CommitDate: Mon, 5 Jul 2010 14:04:46 +0200
chain.c32: Put declaration of *stage2 before common code
Put declaration of *stage2 before common code.
Signed-off-by: Gert Hulselmans <gerth at zytor.com>
---
com32/modules/chain.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 7a2c8d4..48a83d2 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
More information about the Syslinux-commits
mailing list