diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-06-24 21:35:43 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-06-24 21:35:43 (GMT) |
commit | a2ca1ae3cad0c28feefe4c14f858cd5f1b3eccd6 (patch) | |
tree | d859202a5001277b55937cb25e07f14a0ad9bc21 /Modules | |
parent | a45ecae474e1bf7b5e7699c55888d70daa70b85b (diff) | |
download | cpython-a2ca1ae3cad0c28feefe4c14f858cd5f1b3eccd6.zip cpython-a2ca1ae3cad0c28feefe4c14f858cd5f1b3eccd6.tar.gz cpython-a2ca1ae3cad0c28feefe4c14f858cd5f1b3eccd6.tar.bz2 |
Fix typos in inet_pton/inet_ntop.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index c4c758c..af41140 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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; |