Changeset 1094

Show
Ignore:
Timestamp:
10/28/07 18:36:16 (2 years ago)
Author:
ahu
Message:

gcc 4.3 fixes, mostly by Darix of opensuse

Location:
trunk/pdns
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/modules/ldapbackend/powerldap.cc

    r1069 r1094  
    11#include "powerldap.hh" 
    2  
     2// for timeval 
     3#include <sys/time.h> 
    34 
    45 
  • trunk/pdns/pdns/Makefile.am

    r1086 r1094  
    7070        unix_utility.cc utility.hh               
    7171 
     72#socketbench_SOURCES=socketbench.cc qtype.cc misc.cc unix_utility.cc\ 
     73#        logger.cc statbag.cc epollmplexer.cc 
    7274 
    7375dnsreplay_SOURCES=dnsreplay.cc misc.cc  qtype.cc anadns.hh \ 
  • trunk/pdns/pdns/distributor.hh

    r987 r1094  
    8383  { 
    8484    Question *Q; 
    85     time_t created; 
    8685    void (*callback)(const AnswerData &); 
    8786    int id; 
  • trunk/pdns/pdns/dns.hh

    r965 r1094  
    116116#endif  
    117117 
    118 typedef enum  { 
     118enum  { 
    119119        ns_t_invalid = 0,       /* Cookie. */ 
    120120        ns_t_a = 1,             /* Host address. */ 
     
    138138        ns_t_x25 = 19,          /* X_25 calling address. */ 
    139139        ns_t_isdn = 20,         /* ISDN calling address. */ 
    140         ns_t_rt = 21,           /* Router. */ 
     140        ns_t_rt = 21,           /* Router. */ 
    141141        ns_t_nsap = 22,         /* NSAP address. */ 
    142142        ns_t_nsap_ptr = 23,     /* Reverse NSAP lookup (deprecated). */ 
  • trunk/pdns/pdns/dynmessenger.cc

    r681 r1094  
    1919#include "dynmessenger.hh" 
    2020#include <cstdio> 
     21#include <cstdlib> 
    2122#include <cstring> 
    2223#include <cerrno> 
  • trunk/pdns/pdns/misc.hh

    r1021 r1094  
    2020#define MISC_HH 
    2121#include <stdint.h> 
     22#include <cstring> 
    2223 
    2324#if 0 
     
    235236} 
    236237 
    237 inline const char dns_tolower(char c) 
     238inline char dns_tolower(char c) 
    238239{ 
    239240  if(c>='A' && c<='Z') 
  • trunk/pdns/pdns/pdns_recursor.cc

    r1073 r1094  
    417417 
    418418  if(::arg()["hint-file"].empty()) { 
    419     static char*ips[]={"198.41.0.4", "192.228.79.201", "192.33.4.12", "128.8.10.90", "192.203.230.10", "192.5.5.241", "192.112.36.4", "128.63.2.53",  
     419    static const char*ips[]={"198.41.0.4", "192.228.79.201", "192.33.4.12", "128.8.10.90", "192.203.230.10", "192.5.5.241", "192.112.36.4", "128.63.2.53", 
    420420                       "192.36.148.17","192.58.128.30", "193.0.14.129", "198.32.64.12", "202.12.27.33"}; 
    421421    DNSResourceRecord arr, nsrr; 
  • trunk/pdns/pdns/resolver.cc

    r1026 r1094  
    398398    throw ResolverException("Remote nameserver replied with wrong id"); 
    399399  } 
    400   if(mdp->d_header.rcode) 
     400  if(mdp->d_header.rcode) { 
    401401    if(d_inaxfr) 
    402402      throw ResolverException("Remote nameserver unable/unwilling to AXFR with us: RCODE="+itoa(mdp->d_header.rcode)); 
    403403    else 
    404404      throw ResolverException("Remote nameserver reported error: RCODE="+itoa(mdp->d_header.rcode)); 
    405    
     405  } 
    406406    if(!d_inaxfr) { 
    407407      if(mdp->d_header.qdcount!=1) 
  • trunk/pdns/pdns/sstuff.hh

    r964 r1094  
    190190    socklen_t remlen=sizeof(remote); 
    191191    int bytes; 
    192     if((bytes=recvfrom(d_socket, d_buffer, d_buflen, 0, (sockaddr *)&remote, &remlen))<0) 
    193       if(errno!=EAGAIN) 
     192    if((bytes=recvfrom(d_socket, d_buffer, d_buflen, 0, (sockaddr *)&remote, &remlen))<0) { 
     193      if(errno!=EAGAIN) { 
    194194        throw NetworkError(strerror(errno)); 
    195       else 
     195      } 
     196      else { 
    196197        return false; 
    197      
     198      } 
     199    } 
    198200    dgram.assign(d_buffer,bytes); 
    199201    ep.address.byte=remote.sin_addr.s_addr;