Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
76644a7c
Commit
76644a7c
authored
Jan 25, 2017
by
Bruno Jesus
Committed by
Alexandre Julliard
Jan 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi/tests: Avoid ntoa() twice in function call as it returns same pointer.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
89ca96d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+4
-1
No files found.
dlls/iphlpapi/tests/iphlpapi.c
View file @
76644a7c
...
...
@@ -1598,9 +1598,12 @@ static void test_AllocateAndGetTcpExTableFromStack(void)
trace
(
"AllocateAndGetTcpExTableFromStack table: %u entries
\n
"
,
table_ex
->
dwNumEntries
);
for
(
i
=
0
;
i
<
table_ex
->
dwNumEntries
;
i
++
)
{
char
remote_ip
[
16
];
strcpy
(
remote_ip
,
ntoa
(
table_ex
->
table
[
i
].
dwRemoteAddr
));
trace
(
"%u: local %s:%u remote %s:%u state %u pid %u
\n
"
,
i
,
ntoa
(
table_ex
->
table
[
i
].
dwLocalAddr
),
ntohs
(
table_ex
->
table
[
i
].
dwLocalPort
),
ntoa
(
table_ex
->
table
[
i
].
dwRemoteAddr
)
,
ntohs
(
table_ex
->
table
[
i
].
dwRemotePort
),
remote_ip
,
ntohs
(
table_ex
->
table
[
i
].
dwRemotePort
),
U
(
table_ex
->
table
[
i
]).
dwState
,
table_ex
->
table
[
i
].
dwOwningPid
);
}
}
...
...
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