Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet "newifaddr" in in_control() was set but never us...



details:   https://anonhg.NetBSD.org/src/rev/f3e0d60de1f7
branches:  trunk
changeset: 538513:f3e0d60de1f7
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Oct 22 02:28:47 2002 +0000

description:
"newifaddr" in in_control() was set but never used, remove it.

diffstat:

 sys/netinet/in.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r f153b29ebd7c -r f3e0d60de1f7 sys/netinet/in.c
--- a/sys/netinet/in.c  Tue Oct 22 02:19:57 2002 +0000
+++ b/sys/netinet/in.c  Tue Oct 22 02:28:47 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in.c,v 1.80 2002/09/11 02:46:43 itojun Exp $   */
+/*     $NetBSD: in.c,v 1.81 2002/10/22 02:28:47 simonb Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -102,7 +102,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.80 2002/09/11 02:46:43 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.81 2002/10/22 02:28:47 simonb Exp $");
 
 #include "opt_inet.h"
 #include "opt_inet_conf.h"
@@ -323,7 +323,6 @@
        struct in_aliasreq *ifra = (struct in_aliasreq *)data;
        struct sockaddr_in oldaddr;
        int error, hostIsNew, maskIsNew;
-       int newifaddr;
 
        switch (cmd) {
        case SIOCALIFADDR:
@@ -402,9 +401,7 @@
                        }
                        ia->ia_ifp = ifp;
                        LIST_INIT(&ia->ia_multiaddrs);
-                       newifaddr = 1;
-               } else
-                       newifaddr = 0;
+               }
                break;
 
        case SIOCSIFBRDADDR:



Home | Main Index | Thread Index | Old Index