Patchwork [01/17] vl.c: Remove double include of netinet/in.h for Solaris

login
register
mail settings
Submitter Jes Sorensen
Date June 4, 2010, 4:08 p.m.
Message ID <1275667755-4821-2-git-send-email-Jes.Sorensen@redhat.com>
Download mbox | patch
Permalink /patch/54630/
State New
Headers show

Comments

Jes Sorensen - June 4, 2010, 4:08 p.m.
From: Jes Sorensen <Jes.Sorensen@redhat.com>

vl.c: netinet/in.h is already included once above for in the generic
POSIX section.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 vl.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
Andreas Färber - June 6, 2010, 11:13 a.m.
Am 04.06.2010 um 18:08 schrieb Jes.Sorensen@redhat.com:

> From: Jes Sorensen <Jes.Sorensen@redhat.com>
>
> vl.c: netinet/in.h is already included once above for in the generic
> POSIX section.
>
> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>

Acked-by: Andreas Faerber <afaerber@opensolaris.org>

> ---
> vl.c |    1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index 417554f..7c4298a 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -70,7 +70,6 @@
> #include <sys/ethernet.h>
> #include <sys/sockio.h>
> #include <netinet/arp.h>
> -#include <netinet/in.h>
> #include <netinet/in_systm.h>
> #include <netinet/ip.h>
> #include <netinet/ip_icmp.h> // must come after ip.h
> -- 
> 1.6.5.2

Patch

diff --git a/vl.c b/vl.c
index 417554f..7c4298a 100644
--- a/vl.c
+++ b/vl.c
@@ -70,7 +70,6 @@ 
 #include <sys/ethernet.h>
 #include <sys/sockio.h>
 #include <netinet/arp.h>
-#include <netinet/in.h>
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>
 #include <netinet/ip_icmp.h> // must come after ip.h