Make the name parameter const char *.

This commit is contained in:
Warner Losh 2001-08-11 05:16:00 +00:00
parent 86a02c1326
commit e54b5dd9ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81524
4 changed files with 4 additions and 4 deletions

View File

@ -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));

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {