Date: 3 Nov 2000 18:02:14 -0000 From: "Giorgos Keramidas" <keramida@westgate.gr> To: FreeBSD-gnats-submit@freebsd.org Subject: misc/22582: unused descr[] var in sysctl.c:RELENG_4 Message-ID: <20001103180214.36176.qmail@gray.westgate.gr>
next in thread | raw e-mail | index | archive | help
>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 <sys/types.h> @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001103180214.36176.qmail>