From a388f0af92732728c61040013eb4a54f7c0d6c39 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 9 May 2016 17:38:35 +0200 Subject: [PATCH] Squash 2 compiler warnings in ws-auth.cc Use the correct datatype and initialize. Closes #3832 --- pdns/ws-auth.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 06605ccfbe..61f4e92d2b 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -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"]); -- 2.47.2