• G
    Add macro to define clusterNode.ip buffer size. · 9cfa02fe
    Geoff Garside 提交于
    Add REDIS_CLUSTER_IPLEN macro to define the size of the clusterNode ip
    character array. Additionally use this macro in inet_ntop(3) calls where
    the size of the array was being defined manually.
    
    The REDIS_CLUSTER_IPLEN is defined as INET_ADDRSTRLEN which defines the
    correct size of a buffer to store an IPv4 address in. The
    INET_ADDRSTRLEN macro itself is defined in the <netinet/in.h> header
    file and should be portable across the majority of systems.
    9cfa02fe
redis.h 66.0 KB