From f8513121537a30c31045e8c4bae4f76285823f46 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Thu, 28 Nov 2019 10:37:32 +0700 Subject: [PATCH] use *const pointer for NetBSD's pthread_setname_np --- src/unix/bsd/netbsdlike/netbsd/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index a5a2fc61d507d..9b3c398503a0e 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -1680,7 +1680,7 @@ extern "C" { pub fn pthread_setname_np( t: ::pthread_t, name: *const ::c_char, - arg: *mut ::c_void, + arg: *const ::c_void, ) -> ::c_int; pub fn pthread_attr_get_np( thread: ::pthread_t,