summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorIngo Feinerer <feinerer@logic.at>2019-02-13 15:45:40 +0100
committerAaron Marcher <me@drkhsh.at>2019-02-13 18:04:14 +0100
commitd518472e6235dde0164115cd68f383f3db3427f2 (patch)
treeb60d721c633cf453ec1a92190a9381817dd352d2 /components
parenta9193a757a510e07e69b18ca64d2e50d467f01c1 (diff)
Fix CPU frequency on OpenBSD
Diffstat (limited to 'components')
-rw-r--r--components/cpu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/cpu.c b/components/cpu.c
index 9a021d5..d9bd018 100644
--- a/components/cpu.c
+++ b/components/cpu.c
@@ -53,8 +53,7 @@
const char *
cpu_freq(void)
{
- int mib[2];
- uintmax_t freq;
+ int freq, mib[2];
size_t size;
mib[0] = CTL_HW;