From: Christian Hofstaedtler Date: Tue, 27 Aug 2013 07:58:43 +0000 (+0200) Subject: Fix for compile error introduced by 63851c6 X-Git-Tag: rec-3.6.0-rc1~505^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F973%2Fhead;p=thirdparty%2Fpdns.git Fix for compile error introduced by 63851c6 "update LUABackend::setDomainMetadata signature" - while my updating of the signature is great, there apparently was no compile test prior to submitting. --- diff --git a/modules/luabackend/dnssec.cc b/modules/luabackend/dnssec.cc index df93fda1a8..3529a08d0d 100644 --- a/modules/luabackend/dnssec.cc +++ b/modules/luabackend/dnssec.cc @@ -479,7 +479,7 @@ bool LUABackend::getTSIGKey(const string& name, string* algorithm, string* conte return true; } -bool LUABackend::setDomainMetadata(const string& name, const std::string& kind, std::vector& meta) { +bool LUABackend::setDomainMetadata(const string& name, const std::string& kind, const std::vector& meta) { if(f_lua_setdomainmetadata == 0) return false; @@ -493,7 +493,8 @@ bool LUABackend::setDomainMetadata(const string& name, const std::string& kind, lua_pushstring(lua, kind.c_str()); lua_newtable(lua); - std::vector::iterator i; + + std::vector::const_iterator i; int c = 0;