pacify lint with casts.
This commit is contained in:
parent
c6409540ef
commit
b2351ba0df
|
@ -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) : \
|
||||
|
|
Loading…
Reference in New Issue