From 90b30899b6a1c15b2c32d9214ee8ebe304773dae Mon Sep 17 00:00:00 2001 From: Gert Hulselmans Date: Mon, 5 Jul 2010 14:04:46 +0200 Subject: chain.c32: Put declaration of *stage2 before common code Put declaration of *stage2 before common code. Signed-off-by: Gert Hulselmans --- com32/modules/chain.c | 4 ++-- 1 file 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 -- cgit