Changeset 2562

Show
Ignore:
Timestamp:
04/11/12 13:09:56 (13 months ago)
Author:
peter
Message:

fix another two gcc warnings

Location:
trunk/pdns/pdns
Files:
2 modified

Legend:

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

    r2549 r2562  
    266266      line.append("\n"); 
    267267    line.append("\n"); 
    268     if(write(1,line.c_str(),line.length()) != line.length()) 
     268    if((unsigned int)write(1,line.c_str(),line.length()) != line.length()) 
    269269      L<<Logger::Error<<"Error sending data to console: "<<stringerror()<<endl; 
    270270       
  • trunk/pdns/pdns/slavecommunicator.cc

    r2547 r2562  
    8181    UeberBackend *B=dynamic_cast<UeberBackend *>(P.getBackend());  // copy of the same UeberBackend 
    8282    NSEC3PARAMRecordContent ns3pr, hadNs3pr; 
    83     bool narrow, hadNarrow; 
     83    bool narrow, hadNarrow=false; 
    8484    DNSSECKeeper dk; // has its own ueberbackend 
    8585    bool dnssecZone = false;