]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Squash 2 compiler warnings in ws-auth.cc 3835/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Mon, 9 May 2016 15:38:35 +0000 (17:38 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 9 May 2016 15:38:35 +0000 (17:38 +0200)
Use the correct datatype and initialize. Closes #3832

pdns/ws-auth.cc

index 06605ccfbe07e177e22856d971bad875753406e3..61f4e92d2be3c49c50e08c7e0ac6ad3edceca2d8 100644 (file)
@@ -530,7 +530,7 @@ static void apiZoneCryptokeys(HttpRequest* req, HttpResponse* resp) {
     throw ApiException("Only GET is implemented");
 
   bool inquireSingleKey = false;
-  int inquireKeyId;
+  unsigned int inquireKeyId = 0;
   if (req->parameters.count("key_id")) {
     inquireSingleKey = true;
     inquireKeyId = std::stoi(req->parameters["key_id"]);