svn commit: r229043 - stable/9/sys/cam/scsi
Matthew D Fleming
mdf at FreeBSD.org
Fri Dec 30 22:42:22 UTC 2011
Author: mdf
Date: Fri Dec 30 22:42:22 2011
New Revision: 229043
URL: http://svn.freebsd.org/changeset/base/229043
Log:
MFC r228442:
Do not use the sometimes-reserved word 'bool' for a variable name.
Modified:
stable/9/sys/cam/scsi/scsi_xpt.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/cam/scsi/scsi_xpt.c
==============================================================================
--- stable/9/sys/cam/scsi/scsi_xpt.c Fri Dec 30 22:40:17 2011 (r229042)
+++ stable/9/sys/cam/scsi/scsi_xpt.c Fri Dec 30 22:42:22 2011 (r229043)
@@ -1811,14 +1811,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);
More information about the svn-src-stable-9
mailing list