From owner-freebsd-audit Sun Jun 24 22: 2:46 2001 Delivered-To: freebsd-audit@freebsd.org Received: from coffee.q9media.com (coffee.q9media.com [216.94.229.19]) by hub.freebsd.org (Postfix) with ESMTP id 1BCF037B407 for ; Sun, 24 Jun 2001 22:02:41 -0700 (PDT) (envelope-from mike@coffee.q9media.com) Received: (from mike@localhost) by coffee.q9media.com (8.11.2/8.11.2) id f5P5FXo91684; Mon, 25 Jun 2001 01:15:33 -0400 (EDT) (envelope-from mike) Date: Mon, 25 Jun 2001 01:15:33 -0400 (EDT) Message-Id: <200106250515.f5P5FXo91684@coffee.q9media.com> To: audit@FreeBSD.org From: Mike Barcroft Subject: src/usr.sbin/fdcontrol patch Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I would appreciate it if someone would review and commit the patch at the end of this message. Also available at: http://testbed.q9media.net/freebsd/fdcontrol.20010625.patch Best regards, Mike Barcroft ----------------------------------------------------------------------- fdcontrol.20010625.patch o Make two functions static to silence compiler warnings o Clean up the Makefile a little and set WARNS?=2 Index: fdcontrol/Makefile =================================================================== RCS file: /home/ncvs/src/usr.sbin/fdcontrol/Makefile,v retrieving revision 1.3 diff -u -r1.3 Makefile --- fdcontrol/Makefile 2001/03/26 14:40:02 1.3 +++ fdcontrol/Makefile 2001/06/25 04:58:06 @@ -1,6 +1,7 @@ # $FreeBSD: src/usr.sbin/fdcontrol/Makefile,v 1.3 2001/03/26 14:40:02 ru Exp $ -PROG = fdcontrol -MAN = fdcontrol.8 +PROG= fdcontrol +WARNS?= 2 +MAN= fdcontrol.8 .include Index: fdcontrol/fdcontrol.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/fdcontrol/fdcontrol.c,v retrieving revision 1.7 diff -u -r1.7 fdcontrol.c --- fdcontrol/fdcontrol.c 2001/06/06 06:16:12 1.7 +++ fdcontrol/fdcontrol.c 2001/06/25 04:58:06 @@ -37,7 +37,7 @@ #include #include -int +static int getnumber(void) { int i; @@ -50,7 +50,7 @@ return i; } -void +static void usage(void) { fprintf(stderr, "usage: fdcontrol [-d 0|1] | [-s] device-node\n"); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message