mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make the name parameter const char *.
This commit is contained in:
parent
86a02c1326
commit
e54b5dd9ff
4 changed files with 4 additions and 4 deletions
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue