Commit eb1ff556 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

ping: Enable compilation with long types.

parent f658d9d1
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = ping.exe MODULE = ping.exe
IMPORTS = ws2_32 iphlpapi IMPORTS = ws2_32 iphlpapi
......
...@@ -184,7 +184,7 @@ int __cdecl main(int argc, char** argv) ...@@ -184,7 +184,7 @@ int __cdecl main(int argc, char** argv)
{ {
reply = (ICMP_ECHO_REPLY *) reply_buffer; reply = (ICMP_ECHO_REPLY *) reply_buffer;
if (reply->RoundTripTime >= 1) if (reply->RoundTripTime >= 1)
sprintf(rtt, "=%d", reply->RoundTripTime); sprintf(rtt, "=%ld", reply->RoundTripTime);
else else
strcpy(rtt, "<1"); strcpy(rtt, "<1");
printf("Reply from %s: bytes=%d time%sms TTL=%d\n", ip, l, printf("Reply from %s: bytes=%d time%sms TTL=%d\n", ip, l,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment