• Geoff Garside's avatar
    Use inet_ntop(3) in anet. #apichange · ef839f90
    Geoff Garside authored
    Replace inet_ntoa(3) calls with the more future proof inet_ntop(3)
    function which is capable of handling additional address families.
    
    API Change: anetTcpAccept() & anetPeerToString() additional argument
      additional argument required to specify the length of the character
      buffer the IP address is written to in order to comply with
      inet_ntop(3) function semantics.
    ef839f90
anet.c 13.8 KB