Changeset 1274

Show
Ignore:
Timestamp:
11/15/08 21:31:37 (16 months ago)
Author:
ahu
Message:

update pdns_recursor to support boost 1.37.0 (thanks Darix)

Location:
trunk/pdns/pdns
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/lwres.cc

    r1190 r1274  
    182182    return 1; 
    183183  } 
    184   catch(exception &mde) { 
     184  catch(std::exception &mde) { 
    185185    if(::arg().mustDo("log-common-errors")) 
    186186      L<<Logger::Notice<<"Unable to parse packet from remote server "<<ip.toString()<<": "<<mde.what()<<endl; 
  • trunk/pdns/pdns/pdns_recursor.cc

    r1264 r1274  
    569569      if(ret.size()) { 
    570570        shuffle(ret); 
    571  
     571         
    572572        for(vector<DNSResourceRecord>::const_iterator i=ret.begin(); i!=ret.end(); ++i) { 
    573573          pw.startRecord(i->qname, i->qtype.getCode(), i->ttl, i->qclass, (DNSPacketWriter::Place)i->d_place);  
     
    667667    L<<Logger::Error<<"DNS parser error: "<<dc->d_mdp.d_qname<<", "<<e.what()<<endl; 
    668668  } 
    669   catch(exception& e) { 
     669  catch(std::exception& e) { 
    670670    L<<Logger::Error<<"STL error: "<<e.what()<<endl; 
    671671  } 
     
    11841184    command(); 
    11851185  } 
    1186   catch(exception& e) { 
     1186  catch(std::exception& e) { 
    11871187    L<<Logger::Error<<"Error dealing with control socket request: "<<e.what()<<endl; 
    11881188  } 
     
    14871487    return "ok\n"; 
    14881488  } 
    1489   catch(exception& e) { 
     1489  catch(std::exception& e) { 
    14901490    L<<Logger::Error<<"Had error reloading zones, keeping original data: "<<e.what()<<endl; 
    14911491  } 
     
    15271527            rr=String2DNSRR(rr.qname, rr.qtype, tmp, rr.ttl); 
    15281528          } 
    1529           catch(exception &e) { 
     1529          catch(std::exception &e) { 
    15301530            throw AhuException("Error parsing record '"+rr.qname+"' of type "+rr.qtype.getName()+" in zone '"+headers.first+"' from file '"+headers.second+"': "+e.what()); 
    15311531          } 
     
    16491649    } 
    16501650  } 
    1651   catch(exception& e) { 
     1651  catch(std::exception& e) { 
    16521652    L<<Logger::Error<<"Retaining current script, error from '"<<fname<<"': "<< e.what() <<endl; 
    16531653    return string("Retaining current script, error from '"+fname+"': "+string(e.what())+"\n"); 
     
    17731773     
    17741774  } 
    1775   catch(exception &e) { 
     1775  catch(std::exception &e) { 
    17761776    L<<Logger::Error<<"Failed to load 'lua' script from '"<<::arg()["lua-dns-script"]<<"': "<<e.what()<<endl; 
    17771777    exit(99); 
     
    19591959#endif 
    19601960    ::arg().set("config-dir","Location of configuration directory (recursor.conf)")=SYSCONFDIR; 
     1961#ifndef WIN32 
     1962    ::arg().set("socket-owner","Owner of socket")=""; 
     1963    ::arg().set("socket-group","Group of socket")=""; 
     1964    ::arg().set("socket-mode", "Permissions for socket")=""; 
     1965#endif 
     1966     
    19611967    ::arg().set("socket-dir","Where the controlsocket will live")=LOCALSTATEDIR; 
    19621968    ::arg().set("delegation-only","Which domains we only accept delegations from")=""; 
     
    20332039    ret=EXIT_FAILURE; 
    20342040  } 
    2035   catch(exception &e) { 
     2041  catch(std::exception &e) { 
    20362042    L<<Logger::Error<<"STL Exception: "<<e.what()<<endl; 
    20372043    ret=EXIT_FAILURE;