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:
Gleb Smirnoff 2012-12-25 13:55:21 +00:00
parent bde505592f
commit e8db9937f3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244680
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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));
}
/*