util: fix pointer type on NetBSD
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 2 Aug 2019 23:32:28 +0000 (00:32 +0100)
committerEric Engestrom <eric@engestrom.ch>
Sat, 3 Aug 2019 00:20:21 +0000 (00:20 +0000)
commit2fd30e37220484f44b1cfb1ee9afbe6c8a0b43f0
tree69cf194cab9a5161b114df1e7212709aa69d0fa6
parentb558fa4dfed2adea664552ddca6a86b6d66b62a8
util: fix pointer type on NetBSD

NetBSD expects a `void *` argument [1] as the printf-style arguments to
the formatting string, so we need to cast the `const` away.

[1] https://netbsd.gw.com/cgi-bin/man-cgi?pthread_setname_np++NetBSD-current

Suggested-by: Kamil Rytarowski <n54@gmx.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/u_thread.h