]> granicus.if.org Git - pdns/commitdiff
Printing a pthread_t on platforms having a non-int pthread_id
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 2 Oct 2019 09:17:48 +0000 (11:17 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 2 Oct 2019 09:17:48 +0000 (11:17 +0200)
requires a cast to uintptr_t.

modules/luabackend/reload.cc

index 45c4931f4c9f8c423d893aed242afe16e32be7cb..eff320908706dbcb73b4190703a7bafaf435dfc6 100644 (file)
@@ -56,7 +56,7 @@ void LUABackend::reload() {
     
     backend_name.clear();
 
-    backend_name = "[LUABackend: " + uitoa(backend_pid) + " (" + uitoa(backend_count) +")] ";
+    backend_name = "[LUABackend: " + uitoa((uintptr_t)backend_pid) + " (" + uitoa(backend_count) +")] ";
     
     if (lua)
        lua_close(lua);