From conrads@serene.no-ip.org  Tue Jan 31 21:14:26 2012
Return-Path: <conrads@serene.no-ip.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 281F3106564A
	for <freebsd-gnats-submit@freebsd.org>; Tue, 31 Jan 2012 21:14:26 +0000 (UTC)
	(envelope-from conrads@serene.no-ip.org)
Received: from eastrmfepo203.cox.net (eastrmfepo203.cox.net [68.230.241.218])
	by mx1.freebsd.org (Postfix) with ESMTP id C48458FC13
	for <freebsd-gnats-submit@freebsd.org>; Tue, 31 Jan 2012 21:14:25 +0000 (UTC)
Received: from eastrmimpo305.cox.net ([68.230.241.237])
          by eastrmfepo203.cox.net
          (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP
          id <20120131211420.MSIE25070.eastrmfepo203.cox.net@eastrmimpo305.cox.net>
          for <freebsd-gnats-submit@freebsd.org>;
          Tue, 31 Jan 2012 16:14:20 -0500
Received: from serene.no-ip.org ([98.164.86.55])
	by eastrmimpo305.cox.net with bizsmtp
	id UMEE1i0071BeFqy02MEHZ4; Tue, 31 Jan 2012 16:14:18 -0500
Received: from serene.no-ip.org (localhost [127.0.0.1])
	by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id q0VLEDb4001513
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 31 Jan 2012 15:14:13 -0600 (CST)
	(envelope-from conrads@serene.no-ip.org)
Received: (from root@localhost)
	by serene.no-ip.org (8.14.5/8.14.5/Submit) id q0VLE8vB001512;
	Tue, 31 Jan 2012 15:14:08 -0600 (CST)
	(envelope-from conrads)
Message-Id: <201201312114.q0VLE8vB001512@serene.no-ip.org>
Date: Tue, 31 Jan 2012 15:14:08 -0600 (CST)
From: "Conrad J. Sabatier" <conrad@cox.net>
Reply-To: "Conrad J. Sabatier" <conrads@cox.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] usr.sbin/mptutil: fix build error with DEBUG
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         164672
>Category:       bin
>Synopsis:       [patch] mptutil(8): fix build error with DEBUG
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    eadler
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 31 21:20:08 UTC 2012
>Closed-Date:    Mon Jul 09 05:31:17 UTC 2012
>Last-Modified:  Mon Jul 09 05:31:17 UTC 2012
>Originator:     Conrad J. Sabatier
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD serene.no-ip.org 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Tue Jan 31 14:11:27 CST 2012 conrads@serene.no-ip.org:/usr/obj/usr/src/sys/CUSTOM amd64

>Description:
	buildworld fails in usr.sbin/mptutil if DEBUG defined, due to
	missing declaration of int error.

>How-To-Repeat:
	make buildworld with DEBUG
>Fix:
	patch below

--- patch-mptutil begins here ---
Index: src/usr.sbin/mptutil/mpt_show.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/mptutil/mpt_show.c,v
retrieving revision 1.3
diff -u -r1.3 mpt_show.c
--- src/usr.sbin/mptutil/mpt_show.c	9 Nov 2010 19:28:06 -0000	1.3
+++ src/usr.sbin/mptutil/mpt_show.c	31 Jan 2012 19:22:16 -0000
@@ -538,7 +538,7 @@
 {
 	CONFIG_PAGE_RAID_PHYS_DISK_0 *pinfo;
 	U16 IOCStatus;
-	int fd, i;
+	int error, fd, i;
 
 	if (ac != 1) {
 		warnx("show drives: extra arguments");
--- patch-mptutil ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Mon Jul 9 00:26:29 UTC 2012 
Responsible-Changed-Why:  
I may have already fixed this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164672 
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Mon Jul 9 05:31:16 UTC 2012 
State-Changed-Why:  
dup of bin/166404 - please do not submit duplicate PRs - even if the 
patch "fell through the cracks" - it makes it hard to track what has and 
has not been already fixed. I got really confused seeing this PR :). The 
best way to handle that case is to bug a mailing list to take a look. 

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