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 bug in get_media_options() which wasn't ...



details:   https://anonhg.NetBSD.org/src/rev/180c201f6698
branches:  trunk
changeset: 481211:180c201f6698
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jan 24 22:31:27 2000 +0000

description:
Fix a bug in get_media_options() which wasn't caught with global options;
make sure we only return option bits.

diffstat:

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

diffs (27 lines):

diff -r c7f3fe4fb1a4 -r 180c201f6698 sbin/ifconfig/ifconfig.c
--- a/sbin/ifconfig/ifconfig.c  Mon Jan 24 22:05:53 2000 +0000
+++ b/sbin/ifconfig/ifconfig.c  Mon Jan 24 22:31:27 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ifconfig.c,v 1.60 2000/01/12 10:29:35 joda Exp $       */
+/*     $NetBSD: ifconfig.c,v 1.61 2000/01/24 22:31:27 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.60 2000/01/12 10:29:35 joda Exp $");
+__RCSID("$NetBSD: ifconfig.c,v 1.61 2000/01/24 22:31:27 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -1147,7 +1147,7 @@
                if (option == -1)
                        errx(1, "unknown %s media option: %s",
                            get_media_type_string(type), str);
-               rval |= option;
+               rval |= IFM_OPTIONS(option);
        }
 
        free(optlist);



Home | Main Index | Thread Index | Old Index