1
0
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:
Hajimu UMEMOTO 2005-05-02 04:43:32 +00:00
parent 02fe1744f1
commit 943db5a2ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145786
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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;