1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Fix 'assignment used as truth value' warning

Approved by: re (rwatson)
This commit is contained in:
Peter Wemm 2007-07-05 06:27:15 +00:00
parent a9431a52cf
commit edbb8b4600
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171232

View File

@ -2324,7 +2324,8 @@ nd6_sysctl_drlist(SYSCTL_HANDLER_ARGS)
d->rtaddr.sin6_family = AF_INET6;
d->rtaddr.sin6_len = sizeof(d->rtaddr);
d->rtaddr.sin6_addr = dr->rtaddr;
if (error = sa6_recoverscope(&d->rtaddr) != 0)
error = sa6_recoverscope(&d->rtaddr);
if (error != 0)
return (error);
d->flags = dr->flags;
d->rtlifetime = dr->rtlifetime;