Return to misc.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.170, 2021/09/26 14:01:03 | version 1.171, 2021/11/13 21:14:13 | ||
---|---|---|---|
|
|
||
} | } | ||
void | void | ||
ms_to_timeval(struct timeval *tv, int ms) | ms_to_timespec(struct timespec *ts, int ms) | ||
{ | { | ||
if (ms < 0) | if (ms < 0) | ||
ms = 0; | ms = 0; | ||
tv->tv_sec = ms / 1000; | ts->tv_sec = ms / 1000; | ||
tv->tv_usec = (ms % 1000) * 1000; | ts->tv_nsec = (ms % 1000) * 1000 * 1000; | ||
} | } | ||
void | void |