Date: Sat, 12 Mar 2016 19:11:45 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r296757 - stable/9/libexec/atrun Message-ID: <201603121911.u2CJBjCD074487@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Sat Mar 12 19:11:45 2016 New Revision: 296757 URL: https://svnweb.freebsd.org/changeset/base/296757 Log: MFstable/10 r296756: 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 Modified: stable/9/libexec/atrun/atrun.c Directory Properties: stable/9/ (props changed) stable/9/libexec/atrun/ (props changed) Modified: stable/9/libexec/atrun/atrun.c ============================================================================== --- stable/9/libexec/atrun/atrun.c Sat Mar 12 19:09:51 2016 (r296756) +++ stable/9/libexec/atrun/atrun.c Sat Mar 12 19:11:45 2016 (r296757) @@ -458,8 +458,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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603121911.u2CJBjCD074487>