[PATCH] networking/interface.c: Fix multiple inclusion of net/if_arp.h
Denys Vlasenko
vda.linux at googlemail.com
Thu Apr 1 13:10:55 UTC 2010
On Thu, Apr 1, 2010 at 11:09 AM, Tobias Klauser <tklauser at distanz.ch> wrote:
> The net/if_arp.h header file is already included at the top of the file.
>
> Signed-off-by: Tobias Klauser <tklauser at distanz.ch>
> ---
> networking/interface.c | 4 ----
> 1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/networking/interface.c b/networking/interface.c
> index 0d5a0f9..3171d79 100644
> --- a/networking/interface.c
> +++ b/networking/interface.c
> @@ -711,8 +711,6 @@ static const struct hwtype loop_hwtype = {
> .type = ARPHRD_LOOPBACK
> };
>
> -#include <net/if_arp.h>
> -
> #if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined(_NEWLIB_VERSION)
> #include <net/ethernet.h>
> #else
> @@ -794,8 +792,6 @@ static int FAST_FUNC ether_input(const char *bufp, struct sockaddr *sap)
> return 0;
> }
>
> -#include <net/if_arp.h>
> -
> static const struct hwtype ppp_hwtype = {
> .name = "ppp",
> .title = "Point-to-Point Protocol",
Thanks! I cleaned up these and a few more similar things.
--
vda
More information about the busybox
mailing list