From owner-cvs-sbin Sat May 10 10:41:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA13449 for cvs-sbin-outgoing; Sat, 10 May 1997 10:41:10 -0700 (PDT) Received: from cais.cais.com (root@cais.com [199.0.216.4]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA13405; Sat, 10 May 1997 10:40:39 -0700 (PDT) Received: from earth.mat.net (root@earth.mat.net [205.252.122.1]) by cais.cais.com (8.8.5/8.7.3) with SMTP id NAA22499; Sat, 10 May 1997 13:40:37 -0400 (EDT) Received: from Journey2.mat.net (journey2.mat.net [205.252.122.116]) by earth.mat.net (8.6.12/8.6.12) with SMTP id NAA16648; Sat, 10 May 1997 13:40:28 -0400 Date: Sat, 10 May 1997 13:39:34 -0400 (EDT) From: Chuck Robey To: Doug Rabson cc: Peter Wemm , CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/ifconfig ifconfig.c ifconfig.h ifmedia.c In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 10 May 1997, Doug Rabson wrote: > On Sat, 10 May 1997, Peter Wemm wrote: > > > 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. > > I once tried to fix some bugs in a program which had three global > variables, i, j and k. It used these all over the place for loop > variables and often changed them in subroutines. It was 'fun' trying to > figure out the control flow... Wasn't that called "Basic" or something? :-) > > -- > Doug Rabson Mail: dfr@nlsystems.com > Nonlinear Systems Ltd. Phone: +44 181 951 1891 > > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------