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/in6.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/in6.c')
-rw-r--r-- | sys/netinet6/in6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index d5a8e15..a88fed9 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -586,7 +586,7 @@ in6_control(so, cmd, data, ifp, td) * signed. */ maxexpire = (-1) & - ~(1 << ((sizeof(maxexpire) * 8) - 1)); + ~((time_t)1 << ((sizeof(maxexpire) * 8) - 1)); if (ia->ia6_lifetime.ia6t_vltime < maxexpire - ia->ia6_updatetime) { retlt->ia6t_expire = ia->ia6_updatetime + @@ -604,7 +604,7 @@ in6_control(so, cmd, data, ifp, td) * signed. */ maxexpire = (-1) & - ~(1 << ((sizeof(maxexpire) * 8) - 1)); + ~((time_t)1 << ((sizeof(maxexpire) * 8) - 1)); if (ia->ia6_lifetime.ia6t_pltime < maxexpire - ia->ia6_updatetime) { retlt->ia6t_preferred = ia->ia6_updatetime + |