Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9f6ce27e
Commit
9f6ce27e
authored
Mar 31, 2012
by
Bruno Jesus
Committed by
Alexandre Julliard
Apr 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Avoid usage of inet_ntoa since its return is static.
parent
52c9dcb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
sock.c
dlls/ws2_32/tests/sock.c
+5
-3
No files found.
dlls/ws2_32/tests/sock.c
View file @
9f6ce27e
...
...
@@ -4504,7 +4504,7 @@ static void test_AcceptEx(void)
struct
timeval
timeout
=
{
0
,
10
};
/* wait for 10 milliseconds */
int
got
,
conn1
,
i
;
DWORD
bytesReturned
,
connect_time
;
char
buffer
[
1024
];
char
buffer
[
1024
]
,
ipbuffer
[
32
]
;
OVERLAPPED
overlapped
;
int
iret
,
localSize
=
sizeof
(
struct
sockaddr_in
),
remoteSize
=
localSize
;
BOOL
bret
;
...
...
@@ -4720,15 +4720,17 @@ static void test_AcceptEx(void)
pGetAcceptExSockaddrs
(
buffer
,
2
,
sizeof
(
struct
sockaddr_in
)
+
16
,
sizeof
(
struct
sockaddr_in
)
+
16
,
(
struct
sockaddr
**
)
&
readBindAddress
,
&
localSize
,
(
struct
sockaddr
**
)
&
readRemoteAddress
,
&
remoteSize
);
strcpy
(
ipbuffer
,
inet_ntoa
(
readBindAddress
->
sin_addr
));
ok
(
readBindAddress
->
sin_addr
.
s_addr
==
bindAddress
.
sin_addr
.
s_addr
,
"Local socket address is different %s != %s
\n
"
,
i
net_ntoa
(
readBindAddress
->
sin_addr
)
,
inet_ntoa
(
bindAddress
.
sin_addr
));
i
pbuffer
,
inet_ntoa
(
bindAddress
.
sin_addr
));
ok
(
readBindAddress
->
sin_port
==
bindAddress
.
sin_port
,
"Local socket port is different: %d != %d
\n
"
,
readBindAddress
->
sin_port
,
bindAddress
.
sin_port
);
strcpy
(
ipbuffer
,
inet_ntoa
(
readRemoteAddress
->
sin_addr
));
ok
(
readRemoteAddress
->
sin_addr
.
s_addr
==
peerAddress
.
sin_addr
.
s_addr
,
"Remote socket address is different %s != %s
\n
"
,
i
net_ntoa
(
readRemoteAddress
->
sin_addr
)
,
inet_ntoa
(
peerAddress
.
sin_addr
));
i
pbuffer
,
inet_ntoa
(
peerAddress
.
sin_addr
));
ok
(
readRemoteAddress
->
sin_port
==
peerAddress
.
sin_port
,
"Remote socket port is different: %d != %d
\n
"
,
readRemoteAddress
->
sin_port
,
peerAddress
.
sin_port
);
...
...
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