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

Diff for /src/usr.bin/finger/lprint.c between version 1.11 and 1.12

version 1.11, 2014/10/17 20:19:15 version 1.12, 2015/03/15 00:41:28
Line 36 
Line 36 
 #include <sys/file.h>  #include <sys/file.h>
 #include <sys/stat.h>  #include <sys/stat.h>
 #include <sys/time.h>  #include <sys/time.h>
 #include <tzfile.h>  
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  #include <string.h>
 #include <time.h>  #include <time.h>
Line 181 
Line 180 
                         tp = localtime(&w->loginat);                          tp = localtime(&w->loginat);
                         t = asctime(tp);                          t = asctime(tp);
                         tzn = tp->tm_zone;                          tzn = tp->tm_zone;
                         if (now - w->loginat > SECSPERDAY * DAYSPERNYEAR / 2)                          if (now - w->loginat > SIXMONTHS)
                                 cpr =                                  cpr =
                                     printf("Last login %.16s %.4s (%s) on %s",                                      printf("Last login %.16s %.4s (%s) on %s",
                                     t, t + 20, tzn, w->tty);                                      t, t + 20, tzn, w->tty);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12