Fix sysctl_handle_int() usage. Either arg1 or arg2 should be supplied,
and arg2 doesn't pass size of arg1.
This commit is contained in:
parent
bde505592f
commit
e8db9937f3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244680
@ -160,7 +160,7 @@ tcp_reass_sysctl_qsize(SYSCTL_HANDLER_ARGS)
|
||||
int qsize;
|
||||
|
||||
qsize = uma_zone_get_cur(V_tcp_reass_zone);
|
||||
return (sysctl_handle_int(oidp, &qsize, sizeof(qsize), req));
|
||||
return (sysctl_handle_int(oidp, &qsize, 0, req));
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -312,7 +312,7 @@ syncache_sysctl_count(SYSCTL_HANDLER_ARGS)
|
||||
int count;
|
||||
|
||||
count = uma_zone_get_cur(V_tcp_syncache.zone);
|
||||
return (sysctl_handle_int(oidp, &count, sizeof(count), req));
|
||||
return (sysctl_handle_int(oidp, &count, 0, req));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user