Author: tkreuzer
Date: Tue Feb 3 17:37:08 2009
New Revision: 39357
URL:
http://svn.reactos.org/svn/reactos?rev=39357&view=rev
Log:
ping: silence warnings on x64
Modified:
trunk/reactos/base/applications/network/ping/ping.c
Modified: trunk/reactos/base/applications/network/ping/ping.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/ping/ping.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/ping/ping.c [iso-8859-1] Tue Feb 3 17:37:08
2009
@@ -221,7 +221,7 @@
if (DataSize > ICMP_MAXSIZE - sizeof(ICMP_ECHO_PACKET))
{
printf("Bad value for option -l, valid range is from 0 to
%d.\n",
- ICMP_MAXSIZE - sizeof(ICMP_ECHO_PACKET));
+ ICMP_MAXSIZE - (int)sizeof(ICMP_ECHO_PACKET));
return FALSE;
}
break;
@@ -454,7 +454,7 @@
printf("Reply from %s: bytes=%d time%s%s TTL=%d\n",
inet_ntoa(from->sin_addr),
- size - IphLength - sizeof(ICMP_ECHO_PACKET), Sign, Time, IpHeader->TTL);
+ size - IphLength - (int)sizeof(ICMP_ECHO_PACKET), Sign, Time, IpHeader->TTL);
if (RelativeTime.QuadPart < MinRTT.QuadPart || !MinRTTSet)
{
MinRTT.QuadPart = RelativeTime.QuadPart;