diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-04-04 02:57:49 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-04-04 02:57:49 +0000 |
commit | 31f2b819c68f20ff188724669d3044a0680e3ceb (patch) | |
tree | 3cbec5633c5b1de6974d08e11807ee0ce2110a82 /lib/libthr/thread/thr_getprio.c | |
parent | 2cacffb02b10bf82a1a5ee4d88c3092821839d16 (diff) | |
download | FreeBSD-src-31f2b819c68f20ff188724669d3044a0680e3ceb.zip FreeBSD-src-31f2b819c68f20ff188724669d3044a0680e3ceb.tar.gz |
WARNS level 4 cleanup.
Diffstat (limited to 'lib/libthr/thread/thr_getprio.c')
-rw-r--r-- | lib/libthr/thread/thr_getprio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_getprio.c b/lib/libthr/thread/thr_getprio.c index fa95ef9..e2cac2f 100644 --- a/lib/libthr/thread/thr_getprio.c +++ b/lib/libthr/thread/thr_getprio.c @@ -31,8 +31,10 @@ * * $FreeBSD$ */ +#include "namespace.h" #include <errno.h> #include <pthread.h> +#include "un-namespace.h" #include "thr_private.h" __weak_reference(_pthread_getprio, pthread_getprio); @@ -43,7 +45,7 @@ _pthread_getprio(pthread_t pthread) int policy, ret; struct sched_param param; - if ((ret = pthread_getschedparam(pthread, &policy, ¶m)) == 0) + if ((ret = _pthread_getschedparam(pthread, &policy, ¶m)) == 0) ret = param.sched_priority; else { /* Invalid thread: */ |