From 890f4b0307b6809238ae14f44f74fb4781075827 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Tue, 27 Aug 2013 09:58:43 +0200 Subject: [PATCH] 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. --- modules/luabackend/dnssec.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.47.2