From owner-cvs-sbin Sat May 10 10:15:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA12201 for cvs-sbin-outgoing; Sat, 10 May 1997 10:15:42 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA12144; Sat, 10 May 1997 10:15:24 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA27483; Sat, 10 May 1997 10:14:54 -0700 (PDT) Date: Sat, 10 May 1997 10:14:54 -0700 (PDT) Message-Id: <199705101714.KAA27483@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: cvs commit: src/sbin/ifconfig ifconfig.c ifconfig.h ifmedia.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 97/05/10 10:14:54 Modified: sbin/ifconfig ifconfig.c ifconfig.h ifmedia.c Log: Clean up some more. Move parsing of sysctl iflist data into a single place rather than updating the main loop's index variables from within a subroutine and other revolting things like that. Move some more globals into local variables. Revision Changes Path 1.30 +164 -188 src/sbin/ifconfig/ifconfig.c 1.3 +2 -2 src/sbin/ifconfig/ifconfig.h 1.3 +3 -2 src/sbin/ifconfig/ifmedia.c