]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix compilation errors
authortcely <tcely@users.noreply.github.com>
Tue, 1 Aug 2017 03:32:12 +0000 (23:32 -0400)
committertcely <tcely@users.noreply.github.com>
Thu, 24 May 2018 15:32:44 +0000 (11:32 -0400)
modules/luabackend/private.cc

index 31401792256f916a59f6eb72911459b0fed9c261..919834e4b7a10551d25d6976ca925a99c7834c89 100644 (file)
@@ -37,7 +37,7 @@ bool LUABackend::my_mustDo(string a) {
 }
 
 bool LUABackend::my_isEmpty(string a) {
-    return ::arg().isEmpty(LUABACKEND_PREFIX+"-"+a);
+    return ::arg().isEmpty(string(LUABACKEND_PREFIX)+"-"+a);
 }
 
 bool LUABackend::domaininfo_from_table(DomainInfo *di) {
@@ -132,7 +132,7 @@ void LUABackend::dnsrr_to_table(lua_State *lua, const DNSResourceRecord *rr) {
     
 }
 
-bool dnsrr_from_table(lua_State *lua, DNSResourceRecord &rr) {
+bool LUABackend::dnsrr_from_table(lua_State *lua, DNSResourceRecord &rr) {
 
     bool got_content = false;
     string qt_name;
@@ -147,7 +147,7 @@ bool dnsrr_from_table(lua_State *lua, DNSResourceRecord &rr) {
     // when it's a table prefer the code key
     lua_pushliteral(lua, "qtype");
     lua_gettable(lua, -2);
-    returnedwhat = lua_type(lua, -1);
+    size_t returnedwhat = lua_type(lua, -1);
     if (LUA_TTABLE == returnedwhat) {
         if (getValueFromTable(lua, "code", qt_code))
             rr.qtype = qt_code;