Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a2ca1ae3
Commit
a2ca1ae3
authored
Jun 24, 2001
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in inet_pton/inet_ntop.
parent
a45ecae4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Modules/socketmodule.c
Modules/socketmodule.c
+3
-2
No files found.
Modules/socketmodule.c
View file @
a2ca1ae3
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment