]> granicus.if.org Git - pdns/commitdiff
Changed RecursorBehavior to RecursorBehaviour, reflected in codebase
authorZack Allen <zack@riskive.com>
Mon, 6 Jan 2014 16:32:16 +0000 (11:32 -0500)
committerZack Allen <zack@riskive.com>
Mon, 6 Jan 2014 16:49:29 +0000 (11:49 -0500)
pdns/lua-pdns.cc
pdns/lua-pdns.hh
pdns/pdns_recursor.cc

index 1935730e2a71349ecc9869391386d759739ab229..780825044fae53d8c4e491942bbffa14c2d39904 100644 (file)
@@ -299,9 +299,9 @@ PowerDNSLua::PowerDNSLua(const std::string& fname)
   // set syslog codes used by Logger/enum Urgency
   pushSyslogSecurityLevelTable(d_lua);
   lua_setfield(d_lua, -2, "loglevels");
-  lua_pushnumber(d_lua, RecursorBehavior::PASS);
+  lua_pushnumber(d_lua, RecursorBehaviour::PASS);
   lua_setfield(d_lua, -2, "PASS");
-  lua_pushnumber(d_lua, RecursorBehavior::DROP);
+  lua_pushnumber(d_lua, RecursorBehaviour::DROP);
   lua_setfield(d_lua, -2, "DROP");
 
   lua_setglobal(d_lua, "pdns");
index 14a3e0539c53bb28e022bf8994c4861436fe43f7..eb85ac9f0f167ca41b34b9915841b31ebe42b3f3 100644 (file)
@@ -30,8 +30,8 @@ protected: // FIXME?
   bool d_variable;  
   ComboAddress d_local;
 };
-// this enum creates constants to track the pdns_recursor behavior when returned from the Lua call 
-namespace RecursorBehavior { enum returnTypes{PASS=-1,DROP=-2}; };
+// this enum creates constants to track the pdns_recursor behaviour when returned from the Lua call 
+namespace RecursorBehaviour { enum returnTypes { PASS=-1, DROP=-2 }; };
 void pushResourceRecordsTable(lua_State* lua, const vector<DNSResourceRecord>& records);
 void popResourceRecordsTable(lua_State *lua, const string &query, vector<DNSResourceRecord>& ret);
 void pushSyslogSecurityLevelTable(lua_State *lua);
index 31c3cb90f42da0ed325aab3ada2c5a7aa6926dfd..5625a0097344ca0aba56db7409e7b54e6800eb6f 100644 (file)
@@ -563,12 +563,12 @@ void startDoResolve(void *p)
       }
     }
     
-    if(res == RecursorBehavior::DROP) {
+    if(res == RecursorBehaviour::DROP) {
       delete dc;
       dc=0;
       return;
     }  
-    if(tracedQuery || res == RecursorBehavior::PASS || res == RCode::ServFail || pw.getHeader()->rcode == RCode::ServFail)
+    if(tracedQuery || res == RecursorBehaviour::PASS || res == RCode::ServFail || pw.getHeader()->rcode == RCode::ServFail)
     {
       string trace(sr.getTrace());
       if(!trace.empty()) {
@@ -581,7 +581,7 @@ void startDoResolve(void *p)
       }
     }
 
-    if(res == RecursorBehavior::PASS) {
+    if(res == RecursorBehaviour::PASS) {
       pw.getHeader()->rcode=RCode::ServFail;
       // no commit here, because no record
       g_stats.servFails++;