]> granicus.if.org Git - python/commitdiff
Fix typos in inet_pton/inet_ntop.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 24 Jun 2001 21:35:43 +0000 (21:35 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 24 Jun 2001 21:35:43 +0000 (21:35 +0000)
Modules/socketmodule.c

index c4c758cc79cce0fe76d269c5834c9ea60eab9591..af41140ef4007837f744375f1bbc3bff83053c87 100644 (file)
@@ -2959,7 +2959,8 @@ init_socket(void)
 
 /* Simplistic emulation code for inet_pton that only works for IPv4 */
 #ifndef HAVE_INET_PTON
-int my_inet_pton (int af, char *src, void *dst)
+int 
+inet_pton (int af, char *src, void *dst)
 {
        if(af == AF_INET){
                long packed_addr;
@@ -2978,7 +2979,7 @@ int my_inet_pton (int af, char *src, void *dst)
 }
 
 char *
-my_inet_ntop(int af, void *src, char *dst, socklen_t size)
+inet_ntop(int af, void *src, char *dst, socklen_t size)
 {
        if (af == AF_INET) {
                struct in_addr packed_addr;