From dan@obluda.cz  Mon Jun 24 19:05:43 2002
Return-Path: <dan@obluda.cz>
Received: from xkulesh.vol.cz (xkulesh.vol.cz [195.250.154.106])
	by hub.freebsd.org (Postfix) with ESMTP id 7496437B407
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 24 Jun 2002 19:05:39 -0700 (PDT)
Received: from obluda.cz (localhost [127.0.0.1])
	by xkulesh.vol.cz (8.12.3/8.12.3) with ESMTP id g5P25aTx054187
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Jun 2002 04:05:37 +0200 (CEST)
	(envelope-from dan@obluda.cz)
Received: (from root@localhost)
	by xkulesh.vol.cz (8.12.4/8.12.4/Submit) id g5P1c2k2053231;
	Tue, 25 Jun 2002 03:38:02 +0200 (CEST)
Message-Id: <200206250138.g5P1c2k2053231@xkulesh.vol.cz>
Date: Tue, 25 Jun 2002 03:38:02 +0200 (CEST)
From: Dan Lukes <dan@obluda.cz>
Reply-To: Dan Lukes <dan@obluda.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: cleaning sbin/camcontrol code from warnings
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         39816
>Category:       bin
>Synopsis:       cleaning sbin/camcontrol code from warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 24 19:10:02 PDT 2002
>Closed-Date:    Sun Aug 18 14:49:45 PDT 2002
>Last-Modified:  Sun Aug 18 14:49:45 PDT 2002
>Originator:     Dan Lukes
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
Obludarium
>Environment:
System: FreeBSD xkulesh.vol.cz 4.6-STABLE FreeBSD
sbin/camcontrol/camcontrol.c,v 1.21.2.12 2002/04/07 03:44:49

>Description:
I want to clean some warnings from code.

sbin/camcontrol/camcontrol.c: In function `rescan_or_reset_bus':
1050: warning: unused variable `curbus'

The variable is really unused

>How-To-Repeat:
	N/A
>Fix:

--- sbin/camcontrol/camcontrol.c.ORIG   Mon Apr  8 01:16:19 2002
+++ sbin/camcontrol/camcontrol.c        Tue Jun 25 03:37:14 2002
@@ -1047,7 +1047,6 @@
 rescan_or_reset_bus(int bus, int rescan)
 {
        union ccb ccb, matchccb;
-       int curbus;
        int fd, retval;
        int bufsize;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Sun Aug 18 14:49:20 PDT 2002 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39816 
>Unformatted:
