summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-06-29 23:09:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-06-29 23:09:04 +0000
commit7d9a8fed4bad8e4c27534848faa648237caafb9d (patch)
tree034c5ad456bb8bfabc4fca63d3f55f66c9ea170c /sys
parent93211c85eafcbee9cac7959f447c14a2c5f05f61 (diff)
two typecasts which make lint warn a lot less; ok kettenis
otto went further, and verified that the operation is exactly the same in C, and that it is currently only our lint that is being a whiner -- but it is a loud enough whine that we should silence it
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/time.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/time.h b/sys/sys/time.h
index a207df975ef..01b239a6134 100644
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.h,v 1.23 2006/06/19 15:13:35 deraadt Exp $ */
+/* $OpenBSD: time.h,v 1.24 2006/06/29 23:09:03 deraadt Exp $ */
/* $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $ */
/*
@@ -204,7 +204,7 @@ timespec2bintime(struct timespec *ts, struct bintime *bt)
bt->sec = ts->tv_sec;
/* 18446744073 = int(2^64 / 1000000000) */
- bt->frac = ts->tv_nsec * (uint64_t)18446744073ULL;
+ bt->frac = (uint64_t)ts->tv_nsec * (uint64_t)18446744073ULL;
}
static __inline void
@@ -221,7 +221,7 @@ timeval2bintime(struct timeval *tv, struct bintime *bt)
bt->sec = (time_t)tv->tv_sec;
/* 18446744073709 = int(2^64 / 1000000) */
- bt->frac = tv->tv_usec * (uint64_t)18446744073709ULL;
+ bt->frac = (uint64_t)tv->tv_usec * (uint64_t)18446744073709ULL;
}
/*