mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
Add missing includes and correct argument to sysctlbyname
PR: misc/120274 MFC after: 1 week
This commit is contained in:
parent
193f57e2c0
commit
f21e8a6793
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175979
@ -31,6 +31,8 @@
|
||||
* zero all the stats or just the timing stuff.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <strings.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/sysctl.h>
|
||||
@ -58,7 +60,7 @@ main(int argc, char *argv[])
|
||||
size_t slen;
|
||||
|
||||
slen = sizeof (stats);
|
||||
if (sysctlbyname("kern.crypto_stats", &stats, &slen, NULL, NULL) < 0)
|
||||
if (sysctlbyname("kern.crypto_stats", &stats, &slen, NULL, 0) < 0)
|
||||
err(1, "kern.cryptostats");
|
||||
|
||||
if (argc > 1 && strcmp(argv[1], "-z") == 0) {
|
||||
|
@ -93,6 +93,7 @@
|
||||
#include <sys/mman.h>
|
||||
#include <paths.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/time.h>
|
||||
|
Loading…
Reference in New Issue
Block a user