Source-Changes-HG archive

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

[src/trunk]: src/sbin/ifconfig Make the previous actually compile.



details:   https://anonhg.NetBSD.org/src/rev/caa8e76991fd
branches:  trunk
changeset: 474932:caa8e76991fd
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jul 26 19:38:36 1999 +0000

description:
Make the previous actually compile.

diffstat:

 sbin/ifconfig/ifconfig.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 87a1272bdbd7 -r caa8e76991fd sbin/ifconfig/ifconfig.c
--- a/sbin/ifconfig/ifconfig.c  Mon Jul 26 19:31:56 1999 +0000
+++ b/sbin/ifconfig/ifconfig.c  Mon Jul 26 19:38:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ifconfig.c,v 1.56 1999/07/26 12:00:47 darrenr Exp $    */
+/*     $NetBSD: ifconfig.c,v 1.57 1999/07/26 19:38:36 thorpej Exp $    */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
 #if 0
 static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94";
 #else
-__RCSID("$NetBSD: ifconfig.c,v 1.56 1999/07/26 12:00:47 darrenr Exp $");
+__RCSID("$NetBSD: ifconfig.c,v 1.57 1999/07/26 19:38:36 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -479,9 +479,10 @@
                        if (strcmp(argv[0], p->c_name) == 0)
                                break;
                if (p->c_name == 0 && setaddr) {
-                       if (!(flags & IFF_POINTOPOINT)) {
+                       if ((flags & IFF_POINTOPOINT) == 0) {
                                errx(1, "can't set destination address %s",
                                     "on non-point-to-point link");
+                       }
                        p++;    /* got src, do dst */
                }
                if (p->c_func) {



Home | Main Index | Thread Index | Old Index