Skip to content

Commit a2ca1ae

Browse files
committed
Fix typos in inet_pton/inet_ntop.
1 parent a45ecae commit a2ca1ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/socketmodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,7 +2959,8 @@ init_socket(void)
29592959

29602960
/* Simplistic emulation code for inet_pton that only works for IPv4 */
29612961
#ifndef HAVE_INET_PTON
2962-
int my_inet_pton (int af, char *src, void *dst)
2962+
int
2963+
inet_pton (int af, char *src, void *dst)
29632964
{
29642965
if(af == AF_INET){
29652966
long packed_addr;
@@ -2978,7 +2979,7 @@ int my_inet_pton (int af, char *src, void *dst)
29782979
}
29792980

29802981
char *
2981-
my_inet_ntop(int af, void *src, char *dst, socklen_t size)
2982+
inet_ntop(int af, void *src, char *dst, socklen_t size)
29822983
{
29832984
if (af == AF_INET) {
29842985
struct in_addr packed_addr;

0 commit comments

Comments
 (0)