ping: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f658d9d178
commit
eb1ff55636
|
@ -1,4 +1,3 @@
|
|||
EXTRADEFS = -DWINE_NO_LONG_TYPES
|
||||
MODULE = ping.exe
|
||||
IMPORTS = ws2_32 iphlpapi
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ int __cdecl main(int argc, char** argv)
|
|||
{
|
||||
reply = (ICMP_ECHO_REPLY *) reply_buffer;
|
||||
if (reply->RoundTripTime >= 1)
|
||||
sprintf(rtt, "=%d", reply->RoundTripTime);
|
||||
sprintf(rtt, "=%ld", reply->RoundTripTime);
|
||||
else
|
||||
strcpy(rtt, "<1");
|
||||
printf("Reply from %s: bytes=%d time%sms TTL=%d\n", ip, l,
|
||||
|
|
Loading…
Reference in New Issue