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 _______________________________________________ svn-src-stable-9@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-9 To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"