From ee77339f00ea33f4b8611a41b4efabe50ba3a400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Mon, 5 Sep 2005 21:08:24 +0000 Subject: [PATCH] Sync to Wine-20050830: Mike McCormack - gcc 4.0 warning fixes. svn path=/trunk/; revision=17668 --- reactos/lib/icmp/icmp.spec | 16 ++++++++-------- reactos/lib/icmp/icmp_main.c | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/reactos/lib/icmp/icmp.spec b/reactos/lib/icmp/icmp.spec index aa30a6aa058..93d5b275ad2 100644 --- a/reactos/lib/icmp/icmp.spec +++ b/reactos/lib/icmp/icmp.spec @@ -1,8 +1,8 @@ -@ stdcall IcmpCloseHandle(ptr) -@ stdcall IcmpCreateFile() -@ stub IcmpParseReplies -@ stub IcmpSendEcho2 -@ stdcall IcmpSendEcho(ptr long ptr long ptr ptr long long) -@ stub do_echo_rep -@ stub do_echo_req -@ stub register_icmp +@ stdcall IcmpCloseHandle(ptr) +@ stdcall IcmpCreateFile() +@ stub IcmpParseReplies +@ stub IcmpSendEcho2 +@ stdcall IcmpSendEcho(ptr long ptr long ptr ptr long long) +@ stub do_echo_rep +@ stub do_echo_req +@ stub register_icmp diff --git a/reactos/lib/icmp/icmp_main.c b/reactos/lib/icmp/icmp_main.c index 370fe84c1c5..ba565518afa 100644 --- a/reactos/lib/icmp/icmp_main.c +++ b/reactos/lib/icmp/icmp_main.c @@ -213,7 +213,7 @@ DWORD WINAPI IcmpSendEcho( struct timeval timeout; DWORD send_time,recv_time; struct sockaddr_in addr; - int addrlen; + unsigned int addrlen; unsigned short id,seq,cksum; int res; @@ -256,7 +256,7 @@ DWORD WINAPI IcmpSendEcho( if (RequestOptions!=NULL) { int val; if (icp->default_opts.OptionsSize==IP_OPTS_UNKNOWN) { - int len; + unsigned int len; /* Before we mess with the options, get the default values */ len=sizeof(val); getsockopt(icp->sid,IPPROTO_IP,IP_TTL,(char *)&val,&len); @@ -455,7 +455,7 @@ DWORD WINAPI IcmpSendEcho( ier->Options.OptionsData=(unsigned char *) ier->Data-ier->Options.OptionsSize; /* FIXME: We are supposed to rearrange the option's 'source route' data */ memmove(ier->Options.OptionsData,((char*)ip_header)+ip_header_len,ier->Options.OptionsSize); - endbuf=ier->Options.OptionsData; + endbuf=(char*)ier->Options.OptionsData; } else { ier->Options.OptionsData=NULL; endbuf=ier->Data;