Module Name: src
Committed By: christos
Date: Sat Nov 3 03:10:35 UTC 2012
Modified Files:
src/lib/libpthread: pthread.c
Log Message:
cast return of sysconf
To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/lib/libpthread/pthread.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libpthread/pthread.c
diff -u src/lib/libpthread/pthread.c:1.137 src/lib/libpthread/pthread.c:1.138
--- src/lib/libpthread/pthread.c:1.137 Wed Aug 15 09:28:32 2012
+++ src/lib/libpthread/pthread.c Fri Nov 2 23:10:35 2012
@@ -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 @@ pthread__init(void)
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();