summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth/common/ng_bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/bluetooth/common/ng_bluetooth.c')
-rw-r--r--sys/netgraph/bluetooth/common/ng_bluetooth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netgraph/bluetooth/common/ng_bluetooth.c b/sys/netgraph/bluetooth/common/ng_bluetooth.c
index 108e96b..6f6a46e 100644
--- a/sys/netgraph/bluetooth/common/ng_bluetooth.c
+++ b/sys/netgraph/bluetooth/common/ng_bluetooth.c
@@ -72,7 +72,7 @@ bluetooth_set_hci_command_timeout_value(SYSCTL_HANDLER_ARGS)
int error;
value = bluetooth_hci_command_timeout_value;
- error = sysctl_handle_int(oidp, &value, sizeof(value), req);
+ error = sysctl_handle_int(oidp, &value, 0, req);
if (error == 0 && req->newptr != NULL) {
if (value > 0)
bluetooth_hci_command_timeout_value = value;
@@ -96,7 +96,7 @@ bluetooth_set_hci_connect_timeout_value(SYSCTL_HANDLER_ARGS)
int error;
value = bluetooth_hci_connect_timeout_value;
- error = sysctl_handle_int(oidp, &value, sizeof(value), req);
+ error = sysctl_handle_int(oidp, &value, 0, req);
if (error == 0 && req->newptr != NULL) {
if (0 < value && value <= bluetooth_l2cap_rtx_timeout_value)
bluetooth_hci_connect_timeout_value = value;
@@ -131,7 +131,7 @@ bluetooth_set_l2cap_rtx_timeout_value(SYSCTL_HANDLER_ARGS)
int error;
value = bluetooth_l2cap_rtx_timeout_value;
- error = sysctl_handle_int(oidp, &value, sizeof(value), req);
+ error = sysctl_handle_int(oidp, &value, 0, req);
if (error == 0 && req->newptr != NULL) {
if (bluetooth_hci_connect_timeout_value <= value &&
value <= bluetooth_l2cap_ertx_timeout_value)
@@ -156,7 +156,7 @@ bluetooth_set_l2cap_ertx_timeout_value(SYSCTL_HANDLER_ARGS)
int error;
value = bluetooth_l2cap_ertx_timeout_value;
- error = sysctl_handle_int(oidp, &value, sizeof(value), req);
+ error = sysctl_handle_int(oidp, &value, 0, req);
if (error == 0 && req->newptr != NULL) {
if (value >= bluetooth_l2cap_rtx_timeout_value)
bluetooth_l2cap_ertx_timeout_value = value;
OpenPOWER on IntegriCloud