Created
April 26, 2013 11:45
-
-
Save Habbie/5466844 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: modules/db2backend/DB2Backend.cc | |
| =================================================================== | |
| --- modules/db2backend/DB2Backend.cc (revision 3017) | |
| +++ modules/db2backend/DB2Backend.cc (working copy) | |
| @@ -7,13 +7,13 @@ | |
| #include "pdns/namespaces.hh" | |
| -#include <dns.hh> | |
| -#include <dnsbackend.hh> | |
| -#include <dnspacket.hh> | |
| -#include <ueberbackend.hh> | |
| -#include <ahuexception.hh> | |
| -#include <logger.hh> | |
| -#include <arguments.hh> | |
| +#include <pdns/dns.hh> | |
| +#include <pdns/dnsbackend.hh> | |
| +#include <pdns/dnspacket.hh> | |
| +#include <pdns/ueberbackend.hh> | |
| +#include <pdns/ahuexception.hh> | |
| +#include <pdns/logger.hh> | |
| +#include <pdns/arguments.hh> | |
| #include "DB2Exception.hh" | |
| #include "DB2Backend.hh" | |
| Index: modules/luabackend/private.cc | |
| =================================================================== | |
| --- modules/luabackend/private.cc (revision 3017) | |
| +++ modules/luabackend/private.cc (working copy) | |
| @@ -60,12 +60,10 @@ | |
| if(!lua_isnil(lua, -1)) { | |
| lua_pushnil(lua); | |
| - const char *key, *value; | |
| + const char *value; | |
| while (lua_next(lua, -2)) { | |
| value = lua_tostring(lua, -1); | |
| lua_pop(lua,1); | |
| - key = lua_tostring(lua, -1); | |
| - | |
| di->masters.push_back(value); | |
| } | |
| } | |
| @@ -80,7 +78,6 @@ | |
| void LUABackend::domains_from_table(vector<DomainInfo>* domains, const char *f_name) { | |
| lua_pushnil(lua); | |
| - int k; | |
| size_t returnedwhat; | |
| while (lua_next(lua, -2)) { | |
| @@ -93,7 +90,6 @@ | |
| } | |
| lua_pop(lua,1); | |
| - k = lua_tonumber(lua, -1); | |
| } | |
| } | |
| @@ -126,4 +122,4 @@ | |
| lua_pushstring(lua, rr->content.c_str()); | |
| lua_settable(lua, -3); | |
| -} | |
| \ No newline at end of file | |
| +} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment