diff options
author | ngie <ngie@FreeBSD.org> | 2016-03-12 19:09:51 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-03-12 19:09:51 +0000 |
commit | c0e4c5b1be113fb100616ee907a8a07dfcf47612 (patch) | |
tree | db26a32c64f5fec6f7e3459afba503a38553b358 /libexec/atrun | |
parent | 1273e6f0a59fa4de9657df7680d91f59eab3ba02 (diff) | |
download | FreeBSD-src-c0e4c5b1be113fb100616ee907a8a07dfcf47612.zip FreeBSD-src-c0e4c5b1be113fb100616ee907a8a07dfcf47612.tar.gz |
MFC r295079:
Fix the type for hw.ncpu, so sysctlbyname doesn't consistently fail on
64-bit architectures where sizeof(int) != sizeof(size_t).
PR: 206758
Diffstat (limited to 'libexec/atrun')
-rw-r--r-- | libexec/atrun/atrun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/atrun/atrun.c b/libexec/atrun/atrun.c index 1e25766..7b11e7b 100644 --- a/libexec/atrun/atrun.c +++ b/libexec/atrun/atrun.c @@ -459,8 +459,9 @@ main(int argc, char *argv[]) int c; int run_batch; #ifdef __FreeBSD__ - size_t ncpu, ncpusz; + size_t ncpusz; double load_avg = -1; + int ncpu; #else double load_avg = LOADAVG_MX; #endif |