From owner-cvs-sbin Thu Nov 21 11:36:30 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA12690 for cvs-sbin-outgoing; Thu, 21 Nov 1996 11:36:30 -0800 (PST) Received: (from wollman@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA12660; Thu, 21 Nov 1996 11:36:14 -0800 (PST) Date: Thu, 21 Nov 1996 11:36:14 -0800 (PST) From: Garrett Wollman Message-Id: <199611211936.LAA12660@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/ifconfig Makefile ifconfig.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wollman 96/11/21 11:36:14 Modified: sbin/ifconfig Makefile ifconfig.c Log: Fix lots of non-bug questionable code: - Don't link against libkvm and don't uselessly include . - Declare constant objects as const. - Declare functions with the correct types. - Call functions with the correct parameters. Not fixed: - The sysctl parsing remains ugly (but it may be the best we can do). - atnetrange() should use strtoul() rather than sscanf() for better error checking. Revision Changes Path 1.7 +6 -4 src/sbin/ifconfig/Makefile 1.20 +149 -108 src/sbin/ifconfig/ifconfig.c