Message ID | 20190702123713.14396-2-laurent@vivier.eu |
---|---|
State | New |
Headers | show |
Series | [PULL,1/3] Fix cacheline detection on FreeBSD/powerpc. | expand |
diff --git a/util/cacheinfo.c b/util/cacheinfo.c index eebe1ce9c5d2..516f837748a3 100644 --- a/util/cacheinfo.c +++ b/util/cacheinfo.c @@ -77,7 +77,7 @@ static void sys_cache_info(int *isize, int *dsize) static void sys_cache_info(int *isize, int *dsize) { /* There's only a single sysctl for both I/D cache line sizes. */ - long size; + int size; size_t len = sizeof(size); if (!sysctlbyname(SYSCTL_CACHELINE_NAME, &size, &len, NULL, 0)) { *isize = *dsize = size;