iphlpapi: Use socklen_t where appropriate.
This commit is contained in:
parent
21dc848378
commit
f9447f92ef
|
@ -223,7 +223,7 @@ DWORD WINAPI IcmpSendEcho(
|
||||||
struct pollfd fdr;
|
struct pollfd fdr;
|
||||||
DWORD send_time,recv_time;
|
DWORD send_time,recv_time;
|
||||||
struct sockaddr_in addr;
|
struct sockaddr_in addr;
|
||||||
unsigned int addrlen;
|
socklen_t addrlen;
|
||||||
unsigned short id,seq,cksum;
|
unsigned short id,seq,cksum;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ DWORD WINAPI IcmpSendEcho(
|
||||||
if (RequestOptions!=NULL) {
|
if (RequestOptions!=NULL) {
|
||||||
int val;
|
int val;
|
||||||
if (icp->default_opts.OptionsSize==IP_OPTS_UNKNOWN) {
|
if (icp->default_opts.OptionsSize==IP_OPTS_UNKNOWN) {
|
||||||
unsigned int len;
|
socklen_t len;
|
||||||
/* Before we mess with the options, get the default values */
|
/* Before we mess with the options, get the default values */
|
||||||
len=sizeof(val);
|
len=sizeof(val);
|
||||||
getsockopt(icp->sid,IPPROTO_IP,IP_TTL,(char *)&val,&len);
|
getsockopt(icp->sid,IPPROTO_IP,IP_TTL,(char *)&val,&len);
|
||||||
|
|
Loading…
Reference in New Issue