Do not use the sometimes-reserved work 'bool' for a variable name.

MFC after:	2 weeks
Sponsored by:	Isilon Systems, LLC
This commit is contained in:
Matthew D Fleming 2011-12-12 18:43:18 +00:00
parent 30a497c860
commit e5587e2e03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228442

View File

@ -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);