[U-Boot] [PATCH] net: bootp: fix warning when CONFIG_BOOTP_SERVERIP is set

Stefano Babic sbabic at denx.de
Fri Oct 28 10:38:44 CEST 2011


Signed-off-by: Stefano Babic <sbabic at denx.de>
CC: Wolfgang Denk <wd at denx.de>
---
 net/bootp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/bootp.c b/net/bootp.c
index b789eec..b446521 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -105,7 +105,9 @@ static int BootpCheckPkt(uchar *pkt, unsigned dest, unsigned src, unsigned len)
  */
 static void BootpCopyNetParams(Bootp_t *bp)
 {
+#if !defined(CONFIG_BOOTP_SERVERIP)
 	IPaddr_t tmp_ip;
+#endif
 
 	NetCopyIP(&NetOurIP, &bp->bp_yiaddr);
 #if !defined(CONFIG_BOOTP_SERVERIP)
-- 
1.7.1



More information about the U-Boot mailing list