Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2012 02:54:35 +0000 (UTC)
From:      Davide Italiano <davide@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r239165 - projects/calloutng/sys/kern
Message-ID:  <201208100254.q7A2sZEY083489@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davide
Date: Fri Aug 10 02:54:35 2012
New Revision: 239165
URL: http://svn.freebsd.org/changeset/base/239165

Log:
  In callout_cc_add(), r_val is sum up with the fractional part of struct
  bintime, so it needs to be uint64_t rather than int. Make this change.
  
  Discussed with:		mav

Modified:
  projects/calloutng/sys/kern/kern_timeout.c

Modified: projects/calloutng/sys/kern/kern_timeout.c
==============================================================================
--- projects/calloutng/sys/kern/kern_timeout.c	Fri Aug 10 01:34:22 2012	(r239164)
+++ projects/calloutng/sys/kern/kern_timeout.c	Fri Aug 10 02:54:35 2012	(r239165)
@@ -558,7 +558,8 @@ callout_cc_add(struct callout *c, struct
     int flags)
 {
 	struct bintime bt;
-	int bucket, r_shift, r_val;	
+	uint64_t r_val;
+	int bucket, r_shift;	
 	
 	CC_LOCK_ASSERT(cc);
 	if (bintime_cmp(&to_bintime, &cc->cc_lastscan, <)) 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208100254.q7A2sZEY083489>