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 slight braino in last.



details:   https://anonhg.NetBSD.org/src/rev/8db4b9d2735a
branches:  trunk
changeset: 473048:8db4b9d2735a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue May 18 18:01:08 1999 +0000

description:
Fix a slight braino in last.

diffstat:

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

diffs (27 lines):

diff -r 8f51b93853f1 -r 8db4b9d2735a sbin/ifconfig/ifconfig.c
--- a/sbin/ifconfig/ifconfig.c  Tue May 18 16:41:07 1999 +0000
+++ b/sbin/ifconfig/ifconfig.c  Tue May 18 18:01:08 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ifconfig.c,v 1.51 1999/05/17 16:00:05 thorpej Exp $    */
+/*     $NetBSD: ifconfig.c,v 1.52 1999/05/18 18:01:08 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.51 1999/05/17 16:00:05 thorpej Exp $");
+__RCSID("$NetBSD: ifconfig.c,v 1.52 1999/05/18 18:01:08 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -370,6 +370,8 @@
        /* Initialize af, just for use in getinfo(). */
        if (afp == NULL)
                af = afs->af_af;
+       else
+               af = afp->af_af;
 
        /* Get information about the interface. */
        (void) strncpy(ifr.ifr_name, name, sizeof(ifr.ifr_name));



Home | Main Index | Thread Index | Old Index