From e54b5dd9ff9eefcecb90af381b5e3cd8efd8f230 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 11 Aug 2001 05:16:00 +0000 Subject: [PATCH] Make the name parameter const char *. --- include/pthread_np.h | 2 +- lib/libc_r/uthread/uthread_info.c | 2 +- lib/libkse/thread/thr_info.c | 2 +- lib/libpthread/thread/thr_info.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/pthread_np.h b/include/pthread_np.h index f5ac7f5aeb7c..e479df66f89f 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 0eddb224dd8b..305a2b980ece 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 0eddb224dd8b..305a2b980ece 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 0eddb224dd8b..305a2b980ece 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) {