Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpthread cast return of sysconf



details:   https://anonhg.NetBSD.org/src/rev/6fa0bf6eafbe
branches:  trunk
changeset: 782442:6fa0bf6eafbe
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 03 03:10:35 2012 +0000

description:
cast return of sysconf

diffstat:

 lib/libpthread/pthread.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 99a02e290626 -r 6fa0bf6eafbe lib/libpthread/pthread.c
--- a/lib/libpthread/pthread.c  Sat Nov 03 02:25:13 2012 +0000
+++ b/lib/libpthread/pthread.c  Sat Nov 03 03:10:35 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread.c,v 1.137 2012/08/15 13:28:32 drochner Exp $   */
+/*     $NetBSD: pthread.c,v 1.138 2012/11/03 03:10:35 christos Exp $   */
 
 /*-
  * Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread.c,v 1.137 2012/08/15 13:28:32 drochner Exp $");
+__RCSID("$NetBSD: pthread.c,v 1.138 2012/11/03 03:10:35 christos Exp $");
 
 #define        __EXPOSE_STACK  1
 
@@ -157,7 +157,7 @@
        extern int __isthreaded;
 
        pthread__pagesize = (size_t)sysconf(_SC_PAGESIZE);
-       pthread__concurrency = sysconf(_SC_NPROCESSORS_CONF);
+       pthread__concurrency = (int)sysconf(_SC_NPROCESSORS_CONF);
 
        /* Initialize locks first; they're needed elsewhere. */
        pthread__lockprim_init();



Home | Main Index | Thread Index | Old Index