components/git/patches/inet_ntop.patch
changeset 4957 69c89839e1ee
equal deleted inserted replaced
4956:a950d471ded6 4957:69c89839e1ee
       
     1 This patch was developed in-house and is planned to be contributed upstream
       
     2 (it is still needed for version 2.6.1).
       
     3 
       
     4 --- git-1.7.9.2/git-compat-util.h.~1~	2015-09-24 16:14:32.844686777 -0700
       
     5 +++ git-1.7.9.2/git-compat-util.h	2015-09-24 16:13:05.181990467 -0700
       
     6 @@ -418,7 +418,7 @@
       
     7  #endif
       
     8  
       
     9  #ifdef NO_INET_NTOP
       
    10 -const char *inet_ntop(int af, const void *src, char *dst, size_t size);
       
    11 +const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
       
    12  #endif
       
    13  
       
    14  extern void release_pack_memory(size_t, int);
       
    15 --- git-1.7.9.2/compat/inet_ntop.c.~1~	2015-09-24 16:16:58.256287899 -0700
       
    16 +++ git-1.7.9.2/compat/inet_ntop.c	2015-09-24 16:17:19.386385899 -0700
       
    17 @@ -168,7 +168,7 @@
       
    18   *	Paul Vixie, 1996.
       
    19   */
       
    20  const char *
       
    21 -inet_ntop(int af, const void *src, char *dst, size_t size)
       
    22 +inet_ntop(int af, const void *src, char *dst, socklen_t size)
       
    23  {
       
    24  	switch (af) {
       
    25  	case AF_INET: