summaryrefslogtreecommitdiffstats
path: root/patches/grub-0.97/0001-fix-static-declaration.patch
blob: 9b12dc00667fcb0c7bfb716ecc7fdc4b96519c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Benedikt Spranger <b.spranger@pengutronix.de>
Date: Tue, 22 Nov 2011 15:19:52 +0100
Subject: [PATCH] fix static declaration

GCC 4.x declares non-static declaration and static definition and vice
versa as error.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
---
 netboot/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/netboot/main.c b/netboot/main.c
index 82759b6..abd9212 100644
--- a/netboot/main.c
+++ b/netboot/main.c
@@ -54,9 +54,9 @@ struct rom_info rom;
 
 static int vendorext_isvalid;
 static unsigned long netmask;
-static struct bootpd_t bootp_data;
+struct bootpd_t bootp_data;
 static unsigned long xid;
-static unsigned char *end_of_rfc1533 = NULL;
+unsigned char *end_of_rfc1533 = NULL;
 
 #ifndef	NO_DHCP_SUPPORT
 #endif /* NO_DHCP_SUPPORT */