Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Dec 2009 23:01:44 +0100
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        "Bjoern A. Zeeb" <bz@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r201141 - head/sys/netinet
Message-ID:  <20091228220144.GA38493@onelab2.iet.unipi.it>
In-Reply-To: <200912282114.nBSLEJVj001562@svn.freebsd.org>
References:  <200912282114.nBSLEJVj001562@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 28, 2009 at 09:14:19PM +0000, Bjoern A. Zeeb wrote:
> Author: bz
> Date: Mon Dec 28 21:14:18 2009
> New Revision: 201141
> URL: http://svn.freebsd.org/changeset/base/201141
> 
> Log:
>   Make the compiler happy after r201125:
>   - + remove two unnecessary initializations in ip_output;
>   + + remove one unnecessary initializations in ip_output;

does it give a warning or an error ? I tried a buildkernel (i386) and
also a picobsd build and neither give any warning.

cheers
luigi

> Modified:
>   head/sys/netinet/ip_output.c
> 
> Modified: head/sys/netinet/ip_output.c
> ==============================================================================
> --- head/sys/netinet/ip_output.c	Mon Dec 28 20:54:34 2009	(r201140)
> +++ head/sys/netinet/ip_output.c	Mon Dec 28 21:14:18 2009	(r201141)
> @@ -113,7 +113,7 @@ ip_output(struct mbuf *m, struct mbuf *o
>      struct ip_moptions *imo, struct inpcb *inp)
>  {
>  	struct ip *ip;
> -	struct ifnet *ifp;
> +	struct ifnet *ifp = NULL;	/* keep compiler happy */
>  	struct mbuf *m0;
>  	int hlen = sizeof (struct ip);
>  	int mtu;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091228220144.GA38493>