--- libelwix/inc/elwix.h 2026/07/29 01:02:05 1.32.4.1 +++ libelwix/inc/elwix.h 2026/07/29 01:09:33 1.32.4.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: elwix.h,v 1.32.4.1 2026/07/29 01:02:05 misho Exp $ +* $Id: elwix.h,v 1.32.4.2 2026/07/29 01:09:33 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -172,23 +172,9 @@ SUCH DAMAGE. #endif /* timespec helpers */ -#ifndef TIMEVAL_TO_TIMESPEC -#define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -#endif - -#ifndef TIMESPEC_TO_TIMEVAL -#define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} -#endif - /* Operations on timevals. */ #ifndef timerclear -#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 +#define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) #endif #ifndef timerisset @@ -228,7 +214,7 @@ SUCH DAMAGE. /* Operations on timespecs. */ #ifndef timespecclear -#define timespecclear(tsp) (tsp)->tv_sec = (tsp)->tv_nsec = 0 +#define timespecclear(tsp) ((tsp)->tv_sec = (tsp)->tv_nsec = 0) #endif #ifndef timespecisset