svn commit: r201141 - head/sys/netinet
Luigi Rizzo
rizzo at iet.unipi.it
Mon Dec 28 21:54:02 UTC 2009
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;
More information about the svn-src-head
mailing list