summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_getprio.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2006-03-29 05:38:19 +0000
committerdes <des@FreeBSD.org>2006-03-29 05:38:19 +0000
commit590f74742c3404d7cf7de1d2dbba7ffe7e80a4e8 (patch)
tree92d647bce752feba552f4ea5a9d791dd6f84d874 /lib/libpthread/thread/thr_getprio.c
parent7415466d60d1ee5bbced95a31d13510067d11ca6 (diff)
downloadFreeBSD-src-590f74742c3404d7cf7de1d2dbba7ffe7e80a4e8.zip
FreeBSD-src-590f74742c3404d7cf7de1d2dbba7ffe7e80a4e8.tar.gz
Bring libpthread up to WARNS level 2.
Reviewed by: deischen
Diffstat (limited to 'lib/libpthread/thread/thr_getprio.c')
-rw-r--r--lib/libpthread/thread/thr_getprio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_getprio.c b/lib/libpthread/thread/thr_getprio.c
index 07c1b0b..875c1b3 100644
--- a/lib/libpthread/thread/thr_getprio.c
+++ b/lib/libpthread/thread/thr_getprio.c
@@ -31,8 +31,12 @@
*
* $FreeBSD$
*/
+
+#include "namespace.h"
#include <errno.h>
#include <pthread.h>
+#include "un-namespace.h"
+
#include "thr_private.h"
LT10_COMPAT_PRIVATE(_pthread_getprio);
@@ -46,7 +50,7 @@ _pthread_getprio(pthread_t pthread)
int policy, ret;
struct sched_param param;
- if ((ret = pthread_getschedparam(pthread, &policy, &param)) == 0)
+ if ((ret = _pthread_getschedparam(pthread, &policy, &param)) == 0)
ret = param.sched_priority;
else {
/* Invalid thread: */
OpenPOWER on IntegriCloud