mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
the 3rd argument of getsockname() should be socklen_t*.
Submitted by: stefanf
This commit is contained in:
parent
02fe1744f1
commit
943db5a2ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145786
@ -781,7 +781,8 @@ set_source(aio, ph)
|
||||
{
|
||||
struct addrinfo ai = *aio->aio_ai;
|
||||
struct sockaddr_storage ss;
|
||||
int s, srclen;
|
||||
socklen_t srclen;
|
||||
int s;
|
||||
|
||||
/* set unspec ("no source is available"), just in case */
|
||||
aio->aio_srcsa.sa_family = AF_UNSPEC;
|
||||
|
@ -954,7 +954,8 @@ set_source(aio, ph)
|
||||
struct policyhead *ph;
|
||||
{
|
||||
struct sockaddr_storage ss = aio->aio_un.aiou_ss;
|
||||
int s, srclen;
|
||||
socklen_t srclen;
|
||||
int s;
|
||||
|
||||
/* set unspec ("no source is available"), just in case */
|
||||
aio->aio_srcsa.sa_family = AF_UNSPEC;
|
||||
|
Loading…
Reference in New Issue
Block a user