]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rename suffix to format
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 28 May 2021 21:14:21 +0000 (23:14 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Sun, 6 Jun 2021 17:40:46 +0000 (19:40 +0200)
pdns/lua-record.cc

index d3458aecdb5bfb93c4fee90aea89edff5b8ef98f..b81aaa775d14c9dd504f3b9237e446360b18dcf0 100644 (file)
@@ -571,7 +571,7 @@ static void setupLuaRecords()
     });
 
 
-  lua.writeFunction("createReverse", [](string suffix, boost::optional<std::unordered_map<string,string>> e){
+  lua.writeFunction("createReverse", [](string format, boost::optional<std::unordered_map<string,string>> 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<std::unordered_map<string,string>> e){
+  lua.writeFunction("createReverse6", [](string format, boost::optional<std::unordered_map<string,string>> e){
       vector<ComboAddress> 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 )  );