X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=net%2Frarp.c;h=94c86d3429b7f7479aa2dbb1c0f5dd53b16ac1d0;hb=7fb3e7a2d64b902e423c9e5a3aedc1f4179ac27d;hp=71056962629f710dcb15db6040aaac09d0ca91c7;hpb=f82642e33899766892499b163e60560fbbf87773;p=u-boot diff --git a/net/rarp.c b/net/rarp.c index 7105696262..94c86d3429 100644 --- a/net/rarp.c +++ b/net/rarp.c @@ -29,8 +29,6 @@ #include "rarp.h" #include "tftp.h" -#if defined(CONFIG_CMD_NET) - #define TIMEOUT 5000UL /* Milliseconds before trying BOOTP again */ #ifndef CONFIG_NET_RETRY_COUNT # define TIMEOUT_COUNT 5 /* # of timeouts before giving up */ @@ -45,12 +43,11 @@ int RarpTry; * Handle a RARP received packet. */ static void -RarpHandler(uchar * dummi0, unsigned dummi1, unsigned dummi2, unsigned dummi3) +RarpHandler(uchar *dummi0, unsigned dummi1, IPaddr_t sip, unsigned dummi2, + unsigned dummi3) { char *s; -#ifdef DEBUG - puts ("Got good RARP\n"); -#endif + debug("Got good RARP\n"); if ((s = getenv("autoload")) != NULL) { if (*s == 'n') { /* @@ -118,5 +115,3 @@ RarpRequest (void) NetSetTimeout(TIMEOUT, RarpTimeout); NetSetHandler(RarpHandler); } - -#endif