[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-bugs
Subject: bin/164672: [patch] usr.sbin/mptutil: fix build error with DEBUG
From: "Conrad J. Sabatier" <conrad () cox ! net>
Date: 2012-01-31 21:14:08
Message-ID: 201201312114.q0VLE8vB001512 () serene ! no-ip ! org
[Download RAW message or body]
> Number: 164672
> Category: bin
> Synopsis: [patch] usr.sbin/mptutil: fix build error with DEBUG
> Confidential: no
> Severity: non-critical
> Priority: low
> Responsible: freebsd-bugs
> State: open
> Quarter:
> Keywords:
> Date-Required:
> Class: change-request
> Submitter-Id: current-users
> Arrival-Date: Tue Jan 31 21:20:08 UTC 2012
> Closed-Date:
> Last-Modified:
> 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:
> Unformatted:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic