Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net lostart: silence gcc warning (XXX: gcc is not right ...



details:   https://anonhg.NetBSD.org/src/rev/1da1cd23c28c
branches:  trunk
changeset: 796521:1da1cd23c28c
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sat Jun 07 11:00:29 2014 +0000

description:
lostart: silence gcc warning (XXX: gcc is not right though).

diffstat:

 sys/net/if_loop.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r a70ae652e7f3 -r 1da1cd23c28c sys/net/if_loop.c
--- a/sys/net/if_loop.c Sat Jun 07 10:30:13 2014 +0000
+++ b/sys/net/if_loop.c Sat Jun 07 11:00:29 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_loop.c,v 1.79 2014/06/05 23:48:16 rmind Exp $       */
+/*     $NetBSD: if_loop.c,v 1.80 2014/06/07 11:00:29 rmind Exp $       */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.79 2014/06/05 23:48:16 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.80 2014/06/07 11:00:29 rmind Exp $");
 
 #include "opt_inet.h"
 #include "opt_atalk.h"
@@ -359,11 +359,11 @@
 {
        for (;;) {
                pktqueue_t *pktq = NULL;
-               struct ifqueue *ifq;
+               struct ifqueue *ifq = NULL;
                struct mbuf *m;
                size_t pktlen;
                uint32_t af;
-               int s, isr;
+               int s, isr = 0;
 
                IFQ_DEQUEUE(&ifp->if_snd, m);
                if (m == NULL)



Home | Main Index | Thread Index | Old Index