svn commit: r184476 - in stable/7/sys: . netinet6
Bjoern A. Zeeb
bz at FreeBSD.org
Thu Oct 30 09:09:08 PDT 2008
Author: bz
Date: Thu Oct 30 16:09:08 2008
New Revision: 184476
URL: http://svn.freebsd.org/changeset/base/184476
Log:
MFC: r182915
mld_timerresid() returns ms so instead of doing the maths in usec
and then dividing down to ms, do the maths in ms.
Obtained from: NetBSD mld6.c rev. 1.47
Approved by: re (gnn)
Modified:
stable/7/sys/ (props changed)
stable/7/sys/netinet6/mld6.c
Modified: stable/7/sys/netinet6/mld6.c
==============================================================================
--- stable/7/sys/netinet6/mld6.c Thu Oct 30 15:56:04 2008 (r184475)
+++ stable/7/sys/netinet6/mld6.c Thu Oct 30 16:09:08 2008 (r184476)
@@ -203,7 +203,7 @@ mld_timerresid(struct in6_multi *in6m)
}
/* return the remaining time in milliseconds */
- return (((u_long)(diff.tv_sec * 1000000 + diff.tv_usec)) / 1000);
+ return (diff.tv_sec * 1000 + diff.tv_usec / 1000);
}
void
More information about the svn-src-stable-7
mailing list