]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
correct type for getRecursorThreadId
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 26 Jul 2018 14:20:26 +0000 (16:20 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 26 Jul 2018 14:20:26 +0000 (16:20 +0200)
pdns/lua-recursor4.hh
pdns/pdns_recursor.cc

index 10928c5cd942b5298b4a8a33c9a6c1d26184fe70..6c0bf7ce5f070b782dc6e7a412bb3086e50a0109 100644 (file)
@@ -38,7 +38,7 @@
 #include "lua-recursor4-ffi.hh"
 
 string GenUDPQueryResponse(const ComboAddress& dest, const string& query);
-unsigned int getRecursorThreadId();
+int getRecursorThreadId();
 
 // pdns_ffi_param_t is a lightuserdata
 template<>
index bf9cfcddf6c622a31119afb0113f75f3c0c2a0ca..854275af96c3bb2d790ce3df0826a075f827bafa 100644 (file)
@@ -300,9 +300,9 @@ ArgvMap &arg()
   return theArg;
 }
 
-unsigned int getRecursorThreadId()
+int getRecursorThreadId()
 {
-  return static_cast<unsigned int>(t_id);
+  return t_id;
 }
 
 int getMTaskerTID()