Date: Sat, 31 Dec 2011 03:03:00 +0000 (UTC) From: Matthew D Fleming <mdf@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r229065 - stable/8/sys/cam/scsi Message-ID: <201112310303.pBV330IG043578@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mdf Date: Sat Dec 31 03:02:59 2011 New Revision: 229065 URL: http://svn.freebsd.org/changeset/base/229065 Log: MFC r228442: Do not use the sometimes-reserved word 'bool' for a variable name. Modified: stable/8/sys/cam/scsi/scsi_xpt.c Directory Properties: stable/8/sys/ (props changed) Modified: stable/8/sys/cam/scsi/scsi_xpt.c ============================================================================== --- stable/8/sys/cam/scsi/scsi_xpt.c Sat Dec 31 02:08:51 2011 (r229064) +++ stable/8/sys/cam/scsi/scsi_xpt.c Sat Dec 31 03:02:59 2011 (r229065) @@ -1462,14 +1462,14 @@ scsi_find_quirk(struct cam_ed *device) static int sysctl_cam_search_luns(SYSCTL_HANDLER_ARGS) { - int error, bool; + int error, val; - bool = cam_srch_hi; - error = sysctl_handle_int(oidp, &bool, 0, req); + val = cam_srch_hi; + error = sysctl_handle_int(oidp, &val, 0, req); if (error != 0 || req->newptr == NULL) return (error); - if (bool == 0 || bool == 1) { - cam_srch_hi = bool; + if (val == 0 || val == 1) { + cam_srch_hi = val; return (0); } else { return (EINVAL);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112310303.pBV330IG043578>