From f21e8a67939f7df25e5715b8683a39417606e429 Mon Sep 17 00:00:00 2001 From: Matteo Riondato Date: Tue, 5 Feb 2008 08:07:19 +0000 Subject: [PATCH] Add missing includes and correct argument to sysctlbyname PR: misc/120274 MFC after: 1 week --- tools/tools/crypto/cryptostats.c | 4 +++- tools/tools/crypto/cryptotest.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/tools/crypto/cryptostats.c b/tools/tools/crypto/cryptostats.c index 83b8a67ac7c..d1c61153d15 100644 --- a/tools/tools/crypto/cryptostats.c +++ b/tools/tools/crypto/cryptostats.c @@ -31,6 +31,8 @@ * zero all the stats or just the timing stuff. */ #include +#include +#include #include #include @@ -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) { diff --git a/tools/tools/crypto/cryptotest.c b/tools/tools/crypto/cryptotest.c index 9bb93ea5666..13c52dd5f86 100644 --- a/tools/tools/crypto/cryptotest.c +++ b/tools/tools/crypto/cryptotest.c @@ -93,6 +93,7 @@ #include #include #include +#include #include #include