From: Peter van Dijk Date: Fri, 28 May 2021 21:14:21 +0000 (+0200) Subject: rename suffix to format X-Git-Tag: auth-4.5.0-beta1~1^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54c20d39e95f91d4b6bda45c365f318114a84fea;p=thirdparty%2Fpdns.git rename suffix to format --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index d3458aecdb..b81aaa775d 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -571,7 +571,7 @@ static void setupLuaRecords() }); - lua.writeFunction("createReverse", [](string suffix, boost::optional> e){ + lua.writeFunction("createReverse", [](string format, boost::optional> e){ try { auto labels = s_lua_record_ctx->qname.getRawLabels(); if(labels.size()<4) @@ -590,7 +590,7 @@ static void setupLuaRecords() if(ComboAddress(c.first, 0) == req) return c.second; } - boost::format fmt(suffix); + boost::format fmt(format); fmt.exceptions( boost::io::all_error_bits ^ ( boost::io::too_many_args_bit | boost::io::too_few_args_bit ) ); fmt % labels[3] % labels[2] % labels[1] % labels[0]; @@ -674,14 +674,14 @@ static void setupLuaRecords() return std::string("::"); }); - lua.writeFunction("createReverse6", [](string suffix, boost::optional> e){ + lua.writeFunction("createReverse6", [](string format, boost::optional> e){ vector candidates; try { auto labels= s_lua_record_ctx->qname.getRawLabels(); if(labels.size()<32) return std::string("unknown"); - boost::format fmt(suffix); + boost::format fmt(format); fmt.exceptions( boost::io::all_error_bits ^ ( boost::io::too_many_args_bit | boost::io::too_few_args_bit ) );