[BACK]Return to misc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/misc.c between version 1.170 and 1.171

version 1.170, 2021/09/26 14:01:03 version 1.171, 2021/11/13 21:14:13
Line 1562 
Line 1562 
 }  }
   
 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

Legend:
Removed from v.1.170  
changed lines
  Added in v.1.171