mirror of
https://github.com/reactos/wine.git
synced 2024-11-27 21:50:37 +00:00
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>
This commit is contained in:
parent
89ca96d06c
commit
76644a7c26
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user