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
b40bc28c
Commit
b40bc28c
authored
Jul 19, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up some warnings from the SGI compiler.
This is part of SF patch #434992.
parent
88660d36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Modules/socketmodule.c
Modules/socketmodule.c
+3
-3
No files found.
Modules/socketmodule.c
View file @
b40bc28c
...
...
@@ -573,7 +573,7 @@ setipaddr(char* name, struct sockaddr_in * addr_ret)
static
PyObject
*
makeipaddr
(
struct
sockaddr_in
*
addr
)
{
long
x
=
ntohl
(
addr
->
sin_addr
.
s_addr
);
unsigned
long
x
=
ntohl
(
addr
->
sin_addr
.
s_addr
);
char
buf
[
100
];
sprintf
(
buf
,
"%d.%d.%d.%d"
,
(
int
)
(
x
>>
24
)
&
0xff
,
(
int
)
(
x
>>
16
)
&
0xff
,
...
...
@@ -2086,13 +2086,13 @@ PySocket_inet_aton(PyObject *self, PyObject *args)
/* Have to use inet_addr() instead */
char
*
ip_addr
;
long
packed_addr
;
unsigned
long
packed_addr
;
if
(
!
PyArg_ParseTuple
(
args
,
"s:inet_aton"
,
&
ip_addr
))
{
return
NULL
;
}
#ifdef USE_GUSI1
packed_addr
=
(
long
)
inet_addr
(
ip_addr
).
s_addr
;
packed_addr
=
inet_addr
(
ip_addr
).
s_addr
;
#else
packed_addr
=
inet_addr
(
ip_addr
);
#endif
...
...
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