From 88a11859a0a26de3683f8459611c11ab6b2efb36 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 2 Mar 2021 12:14:44 +1100 Subject: Switch NetworkIO Meter to using uint32_t and uint64_t From review via @BenBE, this is now a whole lot cleaner. --- freebsd/Platform.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'freebsd') diff --git a/freebsd/Platform.c b/freebsd/Platform.c index a4fe2354..74007472 100644 --- a/freebsd/Platform.c +++ b/freebsd/Platform.c @@ -321,8 +321,7 @@ bool Platform_getNetworkIO(NetworkIOData* data) { size_t countLen = sizeof(count); const int countMib[] = { CTL_NET, PF_LINK, NETLINK_GENERIC, IFMIB_SYSTEM, IFMIB_IFCOUNT }; - int r; - r = sysctl(countMib, ARRAYSIZE(countMib), &count, &countLen, NULL, 0); + int r = sysctl(countMib, ARRAYSIZE(countMib), &count, &countLen, NULL, 0); if (r < 0) return false; -- cgit v1.2.3