From b2351ba0df71d21ba06c3df1c9b799f1998ef749 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 8 Jan 2008 20:56:22 +0000 Subject: [PATCH] pacify lint with casts. --- sys/sys/time.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/sys/time.h b/sys/sys/time.h index c8914633cf5f..59dc05e92a56 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -1,4 +1,4 @@ -/* $NetBSD: time.h,v 1.58 2007/12/22 01:19:41 yamt Exp $ */ +/* $NetBSD: time.h,v 1.59 2008/01/08 20:56:22 christos Exp $ */ /* * Copyright (c) 1982, 1986, 1993 @@ -74,7 +74,7 @@ struct timezone { }; /* Operations on timevals. */ -#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 +#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0L #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) #define timercmp(tvp, uvp, cmp) \ (((tvp)->tv_sec == (uvp)->tv_sec) ? \ @@ -190,8 +190,8 @@ timeval2bintime(const struct timeval *tv, struct bintime *bt) } /* Operations on timespecs. */ -#define timespecclear(tsp) (tsp)->tv_sec = (tsp)->tv_nsec = 0 -#define timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec) +#define timespecclear(tsp) (tsp)->tv_sec = (time_t)((tsp)->tv_nsec = 0L) +#define timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec) #define timespeccmp(tsp, usp, cmp) \ (((tsp)->tv_sec == (usp)->tv_sec) ? \ ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \