From 54c20d39e95f91d4b6bda45c365f318114a84fea Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 28 May 2021 23:14:21 +0200 Subject: [PATCH] rename suffix to format --- pdns/lua-record.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ) ); -- 2.47.2