• Geoff Garside's avatar
    Use inet_ntop(3) in anet. #apichange · 920ab4c9
    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.
    920ab4c9
anet.c 13.8 KB