svn commit: r237922 - projects/calloutng/sys/netinet

Davide Italiano davide at FreeBSD.org
Sun Jul 1 12:44:30 UTC 2012


Author: davide
Date: Sun Jul  1 12:44:29 2012
New Revision: 237922
URL: http://svn.freebsd.org/changeset/base/237922

Log:
  The object that should be zeroed is *xtimer, not xtimer. No space is needed
  after cast.

Modified:
  projects/calloutng/sys/netinet/tcp_timer.c

Modified: projects/calloutng/sys/netinet/tcp_timer.c
==============================================================================
--- projects/calloutng/sys/netinet/tcp_timer.c	Sun Jul  1 12:34:19 2012	(r237921)
+++ projects/calloutng/sys/netinet/tcp_timer.c	Sun Jul  1 12:44:29 2012	(r237922)
@@ -671,7 +671,7 @@ static int
 delta_bintime_in_msecs(struct bintime bt, struct bintime now) 
 {
 	bintime_sub(&bt, &now);
-	return (((uint64_t) 1000 * (uint64_t) (bt.frac >> 32)) >> 32) +
+	return (((uint64_t)1000 * (uint64_t)(bt.frac >> 32)) >> 32) +
 	    (bt.sec * 1000);
 }
 
@@ -681,7 +681,7 @@ tcp_timer_to_xtimer(struct tcpcb *tp, st
 {
 	struct bintime bt, now;
 	
-	bzero(xtimer, sizeof(xtimer));
+	bzero(xtimer, sizeof(*xtimer));
 	if (timer == NULL)
 		return;
 	bintime_clear(&bt);


More information about the svn-src-projects mailing list