Show
Ignore:
Timestamp:
12/24/09 17:57:03 (9 months ago)
Author:
ahu
Message:

and the final bit of whitespace/tab cleanup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/nameserver.hh

    r1320 r1472  
    103103    for(vector<int>::const_iterator i=d_sockets.begin();i!=d_sockets.end();++i) { 
    104104      if(FD_ISSET(*i, &rfds)) { 
    105         sock=*i; 
    106         addrlen=sizeof(remote); 
    107          
    108         len=0; 
     105        sock=*i; 
     106        addrlen=sizeof(remote); 
     107         
     108        len=0; 
    109109 
    110         // XXX FIXME this code could be using recvmsg + ip_pktinfo on platforms that support it 
    111          
    112         if((len=recvfrom(sock,mesg,sizeof(mesg)-1,0,(sockaddr*) &remote, &addrlen))<0) { 
    113           if(errno != EAGAIN) 
    114             L<<Logger::Error<<"recvfrom gave error, ignoring: "<<strerror(errno)<<endl; 
    115           return 0; 
    116         } 
    117         break; 
     110        // XXX FIXME this code could be using recvmsg + ip_pktinfo on platforms that support it 
     111         
     112        if((len=recvfrom(sock,mesg,sizeof(mesg)-1,0,(sockaddr*) &remote, &addrlen))<0) { 
     113          if(errno != EAGAIN) 
     114            L<<Logger::Error<<"recvfrom gave error, ignoring: "<<strerror(errno)<<endl; 
     115          return 0; 
     116        } 
     117        break; 
    118118      } 
    119119    } 
     
    127127    if((len=recvfrom(sock,mesg,512,0,(sockaddr*) &remote, &addrlen))<0) { 
    128128      if(errno != EAGAIN) 
    129         L<<Logger::Error<<"recvfrom gave error, ignoring: "<<strerror(errno)<<endl; 
     129        L<<Logger::Error<<"recvfrom gave error, ignoring: "<<strerror(errno)<<endl; 
    130130      return 0; 
    131131    }