fix lantiq uboot to build lzma compressed bootloaders for eval kits
[openwrt/svn-archive/archive.git] / package / uboot-lantiq / patches / 200-httpd.patch
index 04549fc080d9c284e42e7ecbb04551c7851df88e..b0ab3b6afdb64271d4db6c25ad30da0491a87828 100644 (file)
 +static void
 +uip_arp_update(u16_t *ipaddr, struct uip_eth_addr *ethaddr)
 +{
-+  register struct arp_entry *tabptr;
++  register struct arp_entry *tabptr = 0;
 +  /* Walk through the ARP mapping table and try to find an entry to
 +     update. If none is found, the IP -> MAC address mapping is
 +     inserted in the ARP table. */
 +void
 +uip_arp_out(void)
 +{
-+  struct arp_entry *tabptr;
++  struct arp_entry *tabptr = 0;
 +  /* Find the destination IP address in the ARP table and construct
 +     the Ethernet header. If the destination IP addres isn't on the
 +     local network, we use the default router's IP address instead.
  
 --- a/common/main.c
 +++ b/common/main.c
-@@ -273,6 +273,10 @@ static __inline__ int abortboot(int boot
+@@ -273,6 +273,8 @@ static __inline__ int abortboot(int boot
  
  void main_loop (void)
  {
-+#ifdef CONFIG_CMD_HTTPD
 +      int ret;
-+#endif
 +
  #ifndef CONFIG_SYS_HUSH_PARSER
        static char lastcommand[CONFIG_SYS_CBSIZE] = { 0, };