constify the second args to timevaladd() and timevalsub().

This commit is contained in:
Alfred Perlstein 2003-10-26 02:19:00 +00:00
parent dd18558aaa
commit 6ff7636ea5
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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>