1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-07 13:14:51 +00:00

Unbreak computation of 'smask' that I broke when removing caddr_t.

Submitted by: bde
This commit is contained in:
Alfred Perlstein 2002-06-29 17:56:34 +00:00
parent c4819db060
commit c5e3ef7e1f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99075

View File

@ -129,7 +129,7 @@ vfs_hang_addrlist(mp, nep, argp)
if (saddr->sa_len > argp->ex_addrlen)
saddr->sa_len = argp->ex_addrlen;
if (argp->ex_masklen) {
smask = (struct sockaddr *) (saddr + argp->ex_addrlen);
smask = (struct sockaddr *)((caddr_t)saddr + argp->ex_addrlen);
error = copyin(argp->ex_mask, smask, argp->ex_masklen);
if (error)
goto out;