summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-08-30 04:18:03 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-08-30 04:18:03 +0000
commit7aabac9140bd05a4f8d5871d225784a1408349d2 (patch)
tree4ac2b09f05c6bcc61b65983c1a401e15e4fc2218 /lib
parentbace13e6acb6694fadb26b933700d98322758f9d (diff)
correct type for oldlenp argument to sysctl(2) for machdep.altivec
Diffstat (limited to 'lib')
-rw-r--r--lib/mesa/src/util/u_cpu_detect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mesa/src/util/u_cpu_detect.c b/lib/mesa/src/util/u_cpu_detect.c
index 83875419b..834febc1e 100644
--- a/lib/mesa/src/util/u_cpu_detect.c
+++ b/lib/mesa/src/util/u_cpu_detect.c
@@ -131,7 +131,7 @@ check_os_altivec_support(void)
int sels[2] = {CTL_MACHDEP, CPU_ALTIVEC};
#endif
int has_vu = 0;
- int len = sizeof (has_vu);
+ size_t len = sizeof (has_vu);
int err;
err = sysctl(sels, 2, &has_vu, &len, NULL, 0);