summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_tc.c
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1998-10-06 23:17:44 +0000
committeralex <alex@FreeBSD.org>1998-10-06 23:17:44 +0000
commit6d718e342c3ef45c17af49a7b5e6b95c88440b75 (patch)
tree647e6b3c99630602be2d417000899bba2799eea0 /sys/kern/kern_tc.c
parent5ac8fdd71698c278a94d46b792ad9fb7029db779 (diff)
downloadFreeBSD-src-6d718e342c3ef45c17af49a7b5e6b95c88440b75.zip
FreeBSD-src-6d718e342c3ef45c17af49a7b5e6b95c88440b75.tar.gz
Cast the return value of tvtohz() from a long to an int to satisfy the
compiler that we know what we're doing (the value returned has already been restricted to int ranges). Reviewed by: bde
Diffstat (limited to 'sys/kern/kern_tc.c')
-rw-r--r--sys/kern/kern_tc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index 39347c1..283e0c6 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -39,7 +39,7 @@ static volatile int print_tci = 1;
* SUCH DAMAGE.
*
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
- * $Id: kern_clock.c,v 1.78 1998/08/05 18:06:40 bde Exp $
+ * $Id: kern_clock.c,v 1.79 1998/09/15 10:05:18 gibbs Exp $
*/
#include <sys/param.h>
@@ -269,7 +269,7 @@ tvtohz(tv)
ticks = LONG_MAX;
if (ticks > INT_MAX)
ticks = INT_MAX;
- return (ticks);
+ return ((int)ticks);
}
/*
OpenPOWER on IntegriCloud