summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_info.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-04-04 02:57:49 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-04-04 02:57:49 +0000
commit31f2b819c68f20ff188724669d3044a0680e3ceb (patch)
tree3cbec5633c5b1de6974d08e11807ee0ce2110a82 /lib/libthr/thread/thr_info.c
parent2cacffb02b10bf82a1a5ee4d88c3092821839d16 (diff)
downloadFreeBSD-src-31f2b819c68f20ff188724669d3044a0680e3ceb.zip
FreeBSD-src-31f2b819c68f20ff188724669d3044a0680e3ceb.tar.gz
WARNS level 4 cleanup.
Diffstat (limited to 'lib/libthr/thread/thr_info.c')
-rw-r--r--lib/libthr/thread/thr_info.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_info.c b/lib/libthr/thread/thr_info.c
index 7605741..804ce98 100644
--- a/lib/libthr/thread/thr_info.c
+++ b/lib/libthr/thread/thr_info.c
@@ -32,9 +32,12 @@
* $FreeBSD$
*/
-#include <stdio.h>
+#include "namespace.h"
#include <stdlib.h>
#include <string.h>
+#include <pthread.h>
+#include <pthread_np.h>
+#include "un-namespace.h"
#include "thr_private.h"
@@ -42,7 +45,7 @@ __weak_reference(_pthread_set_name_np, pthread_set_name_np);
/* Set the thread name for debug. */
void
-_pthread_set_name_np(pthread_t thread, char *name)
+_pthread_set_name_np(pthread_t thread, const char *name)
{
struct pthread *curthread = _get_curthread();
int ret = 0;
OpenPOWER on IntegriCloud