summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/cam_xpt.c2
-rw-r--r--sys/cam/scsi/scsi_all.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index baa9bbf..51a8a38 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -6352,7 +6352,7 @@ sysctl_cam_search_luns(SYSCTL_HANDLER_ARGS)
int error, bool;
bool = cam_srch_hi;
- error = sysctl_handle_int(oidp, &bool, sizeof(bool), req);
+ error = sysctl_handle_int(oidp, &bool, 0, req);
if (error != 0 || req->newptr == NULL)
return (error);
if (bool == 0 || bool == 1) {
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index e370106..7349709 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -3023,7 +3023,7 @@ sysctl_scsi_delay(SYSCTL_HANDLER_ARGS)
int error, delay;
delay = scsi_delay;
- error = sysctl_handle_int(oidp, &delay, sizeof(delay), req);
+ error = sysctl_handle_int(oidp, &delay, 0, req);
if (error != 0 || req->newptr == NULL)
return (error);
return (set_scsi_delay(delay));
OpenPOWER on IntegriCloud