summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-08-11 05:16:00 +0000
committerimp <imp@FreeBSD.org>2001-08-11 05:16:00 +0000
commit3e581274aa576cbf847b1cf56b18dafb68e336cd (patch)
tree11c644e047529e3ce340f86cfe21ea36431b3e76
parenta9fe3c5dcad2492871789589c947a11367f45cfc (diff)
downloadFreeBSD-src-3e581274aa576cbf847b1cf56b18dafb68e336cd.zip
FreeBSD-src-3e581274aa576cbf847b1cf56b18dafb68e336cd.tar.gz
Make the name parameter const char *.
-rw-r--r--include/pthread_np.h2
-rw-r--r--lib/libc_r/uthread/uthread_info.c2
-rw-r--r--lib/libkse/thread/thr_info.c2
-rw-r--r--lib/libpthread/thread/thr_info.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/pthread_np.h b/include/pthread_np.h
index f5ac7f5..e479df6 100644
--- a/include/pthread_np.h
+++ b/include/pthread_np.h
@@ -50,7 +50,7 @@ int pthread_single_np __P((void));
int pthread_suspend_np __P((pthread_t));
int pthread_mutexattr_getkind_np __P((pthread_mutexattr_t));
int pthread_mutexattr_setkind_np __P((pthread_mutexattr_t *, int));
-void pthread_set_name_np __P((pthread_t, char *));
+void pthread_set_name_np __P((pthread_t, const char *));
int pthread_switch_add_np __P((pthread_switch_routine_t));
int pthread_switch_delete_np __P((pthread_switch_routine_t));
int pthread_main_np __P((void));
diff --git a/lib/libc_r/uthread/uthread_info.c b/lib/libc_r/uthread/uthread_info.c
index 0eddb22..305a2b9 100644
--- a/lib/libc_r/uthread/uthread_info.c
+++ b/lib/libc_r/uthread/uthread_info.c
@@ -277,7 +277,7 @@ dump_thread(int fd, pthread_t pthread, int long_version)
/* 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)
{
/* Check if the caller has specified a valid thread: */
if (thread != NULL && thread->magic == PTHREAD_MAGIC) {
diff --git a/lib/libkse/thread/thr_info.c b/lib/libkse/thread/thr_info.c
index 0eddb22..305a2b9 100644
--- a/lib/libkse/thread/thr_info.c
+++ b/lib/libkse/thread/thr_info.c
@@ -277,7 +277,7 @@ dump_thread(int fd, pthread_t pthread, int long_version)
/* 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)
{
/* Check if the caller has specified a valid thread: */
if (thread != NULL && thread->magic == PTHREAD_MAGIC) {
diff --git a/lib/libpthread/thread/thr_info.c b/lib/libpthread/thread/thr_info.c
index 0eddb22..305a2b9 100644
--- a/lib/libpthread/thread/thr_info.c
+++ b/lib/libpthread/thread/thr_info.c
@@ -277,7 +277,7 @@ dump_thread(int fd, pthread_t pthread, int long_version)
/* 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)
{
/* Check if the caller has specified a valid thread: */
if (thread != NULL && thread->magic == PTHREAD_MAGIC) {
OpenPOWER on IntegriCloud