From owner-freebsd-bugs Fri Nov 3 10:10:14 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CB99F37B4E5 for ; Fri, 3 Nov 2000 10:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA52447; Fri, 3 Nov 2000 10:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from gray.westgate.gr (gray.westgate.gr [212.205.119.66]) by hub.freebsd.org (Postfix) with SMTP id 9D29437B4CF for ; Fri, 3 Nov 2000 10:02:24 -0800 (PST) Received: (qmail 36177 invoked by uid 1001); 3 Nov 2000 18:02:14 -0000 Message-Id: <20001103180214.36176.qmail@gray.westgate.gr> Date: 3 Nov 2000 18:02:14 -0000 From: "Giorgos Keramidas" Reply-To: charon@gray.westgate.gr To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/22582: unused descr[] var in sysctl.c:RELENG_4 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22582 >Category: misc >Synopsis: unused descr[] var in sysctl.c:RELENG_4 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Nov 03 10:10:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Giorgos Keramidas >Release: FreeBSD 4.2-BETA i386 >Organization: >Environment: % uname -a FreeBSD gray.westgate.gr 4.2-BETA FreeBSD 4.2-BETA #0: Thu Nov 2 11:06:50 EET 2000 root@gray.westgate.gr:/usr/obj/usr/src/sys/GRAY i386 >Description: sysctl.c in RELENG_4 has an unused variable that shows up when -Wall is used. >How-To-Repeat: Compile it with -Wall :-P >Fix: --- sysctl.c Fri Nov 3 20:00:29 2000 +++ sysctl.c.new Fri Nov 3 20:01:11 2000 @@ -42,7 +42,7 @@ static char sccsid[] = "@(#)from: sysctl.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$FreeBSD: /c/ncvs/src/sbin/sysctl/sysctl.c,v 1.25.2.1 2000/07/19 06:22:20 kbyanc Exp $"; + "$FreeBSD: src/sbin/sysctl/sysctl.c,v 1.25.2.1 2000/07/19 06:22:20 kbyanc Exp $"; #endif /* not lint */ #include @@ -345,7 +345,7 @@ show_var(int *oid, int nlen) { u_char buf[BUFSIZ], *val, *p; - char name[BUFSIZ], descr[BUFSIZ], *fmt; + char name[BUFSIZ], *fmt; int qoid[CTL_MAXNAME+2]; int i; size_t j, len; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message