[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.166 and 1.167

version 1.166, 2021/06/08 06:54:40 version 1.167, 2021/07/02 07:20:44
Line 2284 
Line 2284 
         return 0;          return 0;
 }  }
   
   /* On OpenBSD time_t is int64_t which is long long. */
   #ifndef SSH_TIME_T_MAX
   # define SSH_TIME_T_MAX LLONG_MAX
   #endif
   
 void  void
 format_absolute_time(uint64_t t, char *buf, size_t len)  format_absolute_time(uint64_t t, char *buf, size_t len)
 {  {
         time_t tt = t > INT_MAX ? INT_MAX : t; /* XXX revisit in 2038 :P */          time_t tt = t > SSH_TIME_T_MAX ? SSH_TIME_T_MAX : t;
         struct tm tm;          struct tm tm;
   
         localtime_r(&tt, &tm);          localtime_r(&tt, &tm);

Legend:
Removed from v.1.166  
changed lines
  Added in v.1.167