]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix up modules for qtype change
authorBert Hubert <bert.hubert@netherlabs.nl>
Mon, 31 Jan 2011 11:36:25 +0000 (11:36 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Mon, 31 Jan 2011 11:36:25 +0000 (11:36 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1948 d19b8d6e-7fed-0310-83ef-9ca221ded41b

modules/ldapbackend/ldapbackend.cc
modules/opendbxbackend/odbxbackend.cc

index 26748a30fcd3169752f37c5b219b58c75e10bbd9..ef4f6fdd5de76260e17c57f17e80c9d622818eb3 100644 (file)
@@ -413,7 +413,7 @@ bool LdapBackend::get( DNSResourceRecord &rr )
                                {
                                        attrname = m_attribute->first;
                                        qstr = attrname.substr( 0, attrname.length() - 6 );   // extract qtype string from ldap attribute name
-                                       qt = QType( const_cast<char*>(toUpper( qstr ).c_str()) );
+                                       qt = const_cast<char*>(toUpper( qstr ).c_str());
 
                                        while( m_value != m_attribute->second.end() )
                                        {
index 378d8946be07d092de250571b5d9cb19e07a99fa..d7ed2c457d20969815ef4b435afb401bf18cfc3a 100644 (file)
@@ -366,7 +366,7 @@ bool OdbxBackend::get( DNSResourceRecord& rr )
 
                        if( ( tmp = odbx_field_value( m_result, 2 ) ) != NULL )
                        {
-                               rr.qtype = QType( tmp );
+                               rr.qtype = tmp;
                        }
 
                        if( ( tmp = odbx_field_value( m_result, 3 ) ) != NULL )