From: Pieter Lexis Date: Mon, 9 May 2016 15:38:35 +0000 (+0200) Subject: Squash 2 compiler warnings in ws-auth.cc X-Git-Tag: rec-4.0.0-alpha3~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3835%2Fhead;p=thirdparty%2Fpdns.git Squash 2 compiler warnings in ws-auth.cc Use the correct datatype and initialize. Closes #3832 --- 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"]);