]> granicus.if.org Git - pdns/commitdiff
threadname: fix for netbsd
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 28 Sep 2018 13:29:24 +0000 (15:29 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 28 Sep 2018 14:33:54 +0000 (16:33 +0200)
pdns/threadname.cc

index eaa47b7fcd3faea59cff67c128307084b2898cae..249248a62387ff54f65cb26862ef11be8bfd1650 100644 (file)
@@ -55,7 +55,7 @@ void setThreadName(const std::string& threadName) {
   retval = pthread_setname_np(threadName.c_str());
 #endif
 #ifdef HAVE_PTHREAD_SETNAME_NP_3
-  retval = pthread_setname_np(pthread_self(), threadname.c_str(), nullptr);
+  retval = pthread_setname_np(pthread_self(), threadName.c_str(), nullptr);
 #endif
 
   if (retval != 0) {