Do not use int where socklen_t is expected.
This commit is contained in:
parent
8c74632d44
commit
06378b342e
@ -276,7 +276,8 @@ process(fd, pkt_type)
|
|||||||
int pkt_type;
|
int pkt_type;
|
||||||
{
|
{
|
||||||
struct sockaddr from;
|
struct sockaddr from;
|
||||||
int fromlen = sizeof (from), cc, omask;
|
int cc, omask;
|
||||||
|
socklen_t fromlen = sizeof (from);
|
||||||
struct ipx *ipxdp = (struct ipx *)packet;
|
struct ipx *ipxdp = (struct ipx *)packet;
|
||||||
|
|
||||||
cc = recvfrom(fd, packet, sizeof (packet), 0, &from, &fromlen);
|
cc = recvfrom(fd, packet, sizeof (packet), 0, &from, &fromlen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user