PERFORCE change 71461 for review

David Xu davidxu at FreeBSD.org
Mon Feb 21 06:00:24 PST 2005


http://perforce.freebsd.org/chv.cgi?CH=71461

Change 71461 by davidxu at davidxu_tiger on 2005/02/21 14:00:07

	Remove extra "#include"

Affected files ...

.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_concurrency.c#7 edit

Differences ...

==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_concurrency.c#7 (text+ko) ====

@@ -28,8 +28,6 @@
  */
 #include <errno.h>
 #include <pthread.h>
-#include <sys/types.h>
-#include <sys/sysctl.h>
 
 #include "thr_private.h"
 
@@ -47,9 +45,8 @@
 int
 _pthread_setconcurrency(int new_level)
 {
-	if (new_level > 0) {
-		level = new_level;
-		return (0);
-	}	
-	return (EINVAL);
+	if (new_level < 0)
+		return (EINVAL);
+	level = new_level;
+	return (0);
 }


More information about the p4-projects mailing list