Small fixes in new web pages
[oweals/u-boot_mod.git] / u-boot / net / sntp.c
index e06c41188a4b099f2a401b62cf55dec8504f50b5..03e84323dba3a1eb52c7c87e4b61a8038c5da06c 100755 (executable)
@@ -12,6 +12,8 @@
 
 #if ((CONFIG_COMMANDS & CFG_CMD_NET) && (CONFIG_COMMANDS & CFG_CMD_SNTP))
 
+DECLARE_GLOBAL_DATA_PTR;
+
 //#define      DEBUG
 
 #define SNTP_TIMEOUT   10
@@ -80,6 +82,7 @@ static void SntpHandler(uchar *pkt, unsigned dest, unsigned src, unsigned len){
 }
 
 void SntpStart(void){
+       bd_t *bd = gd->bd;
 #ifdef DEBUG
        printf("%s\n", __FUNCTION__);
 #endif