Source-Changes-HG archive

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

[src/trunk]: src/sbin/ifconfig Fix a logic buglet in status printing code.



details:   https://anonhg.NetBSD.org/src/rev/1675978c99a3
branches:  trunk
changeset: 481230:1675978c99a3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jan 25 02:16:57 2000 +0000

description:
Fix a logic buglet in status printing code.

diffstat:

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

diffs (27 lines):

diff -r 9523d08db8b0 -r 1675978c99a3 sbin/ifconfig/ifconfig.c
--- a/sbin/ifconfig/ifconfig.c  Tue Jan 25 01:50:12 2000 +0000
+++ b/sbin/ifconfig/ifconfig.c  Tue Jan 25 02:16:57 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ifconfig.c,v 1.65 2000/01/25 01:46:57 thorpej Exp $    */
+/*     $NetBSD: ifconfig.c,v 1.66 2000/01/25 02:16:57 thorpej Exp $    */
 
 /*-
  * Copyright (c) 1997, 1998, 2000 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.65 2000/01/25 01:46:57 thorpej Exp $");
+__RCSID("$NetBSD: ifconfig.c,v 1.66 2000/01/25 02:16:57 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -1338,7 +1338,7 @@
                        for (ifms = ifm_status_descriptions;
                             ifms->ifms_valid != 0; ifms++) {
                                if (ifms->ifms_type !=
-                                     IFM_TYPE(ifmr.ifm_current) &&
+                                     IFM_TYPE(ifmr.ifm_current) ||
                                    ifms->ifms_valid !=
                                      ifm_status_valid_list[bitno])
                                        continue;



Home | Main Index | Thread Index | Old Index