diff options
author | alfred <alfred@FreeBSD.org> | 2003-10-26 02:19:00 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2003-10-26 02:19:00 +0000 |
commit | 4ba4eee48e435fd482b5ce63620ba778aa5d41e4 (patch) | |
tree | 0238e91f8ce3e1a2017ecaf9e169ea31c4fc9b81 /sys | |
parent | 330554451e094b33516bc571e032f1e81ce0b898 (diff) | |
download | FreeBSD-src-4ba4eee48e435fd482b5ce63620ba778aa5d41e4.zip FreeBSD-src-4ba4eee48e435fd482b5ce63620ba778aa5d41e4.tar.gz |
constify the second args to timevaladd() and timevalsub().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_time.c | 4 | ||||
-rw-r--r-- | sys/sys/time.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index 96ed21c..9587299 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -621,7 +621,7 @@ expire: * Caveat emptor. */ void -timevaladd(struct timeval *t1, struct timeval *t2) +timevaladd(struct timeval *t1, const struct timeval *t2) { t1->tv_sec += t2->tv_sec; @@ -630,7 +630,7 @@ timevaladd(struct timeval *t1, struct timeval *t2) } void -timevalsub(struct timeval *t1, struct timeval *t2) +timevalsub(struct timeval *t1, const struct timeval *t2) { t1->tv_sec -= t2->tv_sec; diff --git a/sys/sys/time.h b/sys/sys/time.h index b713bb8..adee319 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -297,8 +297,8 @@ int itimerdecr(struct itimerval *itp, int usec); int itimerfix(struct timeval *tv); int ppsratecheck(struct timeval *, int *, int); int ratecheck(struct timeval *, const struct timeval *); -void timevaladd(struct timeval *t1, struct timeval *t2); -void timevalsub(struct timeval *t1, struct timeval *t2); +void timevaladd(struct timeval *t1, const struct timeval *t2); +void timevalsub(struct timeval *t1, const struct timeval *t2); int tvtohz(struct timeval *tv); #else /* !_KERNEL */ #include <time.h> |