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
8c159761
Commit
8c159761
authored
Mar 06, 2012
by
Ross Lagerwall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #10951: Fix warnings in the socket module.
parent
8a56085b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Modules/socketmodule.c
Modules/socketmodule.c
+4
-4
No files found.
Modules/socketmodule.c
View file @
8c159761
...
...
@@ -4263,7 +4263,7 @@ socket_gethostbyname_ex(PyObject *self, PyObject *args)
int
buf_len
=
(
sizeof
buf
)
-
1
;
int
errnop
;
#endif
#if
defined(HAVE_GETHOSTBYNAME_R_3_ARG) || defined(HAVE_GETHOSTBYNAME_R_6_ARG)
#if
def HAVE_GETHOSTBYNAME_R_3_ARG
int
result
;
#endif
#endif
/* HAVE_GETHOSTBYNAME_R */
...
...
@@ -4275,7 +4275,7 @@ socket_gethostbyname_ex(PyObject *self, PyObject *args)
Py_BEGIN_ALLOW_THREADS
#ifdef HAVE_GETHOSTBYNAME_R
#if defined(HAVE_GETHOSTBYNAME_R_6_ARG)
result
=
gethostbyname_r
(
name
,
&
hp_allocated
,
buf
,
buf_len
,
gethostbyname_r
(
name
,
&
hp_allocated
,
buf
,
buf_len
,
&
h
,
&
errnop
);
#elif defined(HAVE_GETHOSTBYNAME_R_5_ARG)
h
=
gethostbyname_r
(
name
,
&
hp_allocated
,
buf
,
buf_len
,
&
errnop
);
...
...
@@ -4337,7 +4337,7 @@ socket_gethostbyaddr(PyObject *self, PyObject *args)
int
buf_len
=
(
sizeof
buf
)
-
1
;
int
errnop
;
#endif
#if
defined(HAVE_GETHOSTBYNAME_R_3_ARG) || defined(HAVE_GETHOSTBYNAME_R_6_ARG)
#if
def HAVE_GETHOSTBYNAME_R_3_ARG
int
result
;
#endif
#endif
/* HAVE_GETHOSTBYNAME_R */
...
...
@@ -4371,7 +4371,7 @@ socket_gethostbyaddr(PyObject *self, PyObject *args)
Py_BEGIN_ALLOW_THREADS
#ifdef HAVE_GETHOSTBYNAME_R
#if defined(HAVE_GETHOSTBYNAME_R_6_ARG)
result
=
gethostbyaddr_r
(
ap
,
al
,
af
,
gethostbyaddr_r
(
ap
,
al
,
af
,
&
hp_allocated
,
buf
,
buf_len
,
&
h
,
&
errnop
);
#elif defined(HAVE_GETHOSTBYNAME_R_5_ARG)
...
...
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