diff options
author | suz <suz@FreeBSD.org> | 2005-10-22 05:07:16 +0000 |
---|---|---|
committer | suz <suz@FreeBSD.org> | 2005-10-22 05:07:16 +0000 |
commit | 55b3e47503e40acc7443656e35f538b6f48eb899 (patch) | |
tree | a9ea398f38057f3fb75bdaead80b9038d4979be4 /sys/netinet6/nd6.c | |
parent | 8be657140580c20b53cb6f2f5b33f9a534bdeb00 (diff) | |
download | FreeBSD-src-55b3e47503e40acc7443656e35f538b6f48eb899.zip FreeBSD-src-55b3e47503e40acc7443656e35f538b6f48eb899.tar.gz |
fixed a compilation failure on amd64/sparc64/ia64
Submitted by: max
MFC after: 2 month
Diffstat (limited to 'sys/netinet6/nd6.c')
-rw-r--r-- | sys/netinet6/nd6.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index da2a617..4317b5b 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1481,7 +1481,8 @@ nd6_ioctl(cmd, data, ifp) /* XXX: we assume time_t is signed. */ maxexpire = (-1) & - ~(1 << ((sizeof(maxexpire) * 8) - 1)); + ~((time_t)1 << + ((sizeof(maxexpire) * 8) - 1)); if (pr->ndpr_vltime < maxexpire - pr->ndpr_lastupdate) { oprl->prefix[i].expire = @@ -2330,7 +2331,8 @@ nd6_sysctl_prlist(SYSCTL_HANDLER_ARGS) /* XXX: we assume time_t is signed. */ maxexpire = (-1) & - ~(1 << ((sizeof(maxexpire) * 8) - 1)); + ~((time_t)1 << + ((sizeof(maxexpire) * 8) - 1)); if (pr->ndpr_vltime < maxexpire - pr->ndpr_lastupdate) { p->expire = pr->ndpr_lastupdate + |