diff options
author | 2006-04-09 02:57:41 +0000 | |
---|---|---|
committer | 2006-04-09 02:57:41 +0000 | |
commit | 2ca7b264da9a85eff7c8914e7a3d28ed21138450 (patch) | |
tree | 5c97d14cdad6072f13b9682081f3d4dab887e7ea /lib/libpthread/include | |
parent | regen (diff) | |
download | wireguard-openbsd-2ca7b264da9a85eff7c8914e7a3d28ed21138450.tar.xz wireguard-openbsd-2ca7b264da9a85eff7c8914e7a3d28ed21138450.zip |
Change a debug interface to take const char pointers so we don't ave
to cast away constness whenever we want to pass in a string that is
already const -- we copy the string if we want to use it, so having it
be non-const in the first place does not make any sense.
From tholo@
ok tedu@
Diffstat (limited to 'lib/libpthread/include')
-rw-r--r-- | lib/libpthread/include/pthread_np.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/include/pthread_np.h b/lib/libpthread/include/pthread_np.h index 0c57ab688aa..270e377be6e 100644 --- a/lib/libpthread/include/pthread_np.h +++ b/lib/libpthread/include/pthread_np.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_np.h,v 1.8 2004/05/01 22:15:10 marc Exp $ */ +/* $OpenBSD: pthread_np.h,v 1.9 2006/04/09 02:57:41 krw Exp $ */ /* * Copyright (c) 1996-98 John Birrell <jb@cimlogic.com.au>. * All rights reserved. @@ -52,7 +52,7 @@ int pthread_suspend_np(pthread_t); void pthread_suspend_all_np(void); int pthread_mutexattr_getkind_np(pthread_mutexattr_t); int pthread_mutexattr_setkind_np(pthread_mutexattr_t *, int); -void pthread_set_name_np(pthread_t, char *); +void pthread_set_name_np(pthread_t, const char *); int pthread_stackseg_np(pthread_t, stack_t *); int pthread_switch_add_np(pthread_switch_routine_t); int pthread_switch_delete_np(pthread_switch_routine_t); |