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

Diff for /src/usr.bin/finger/sprint.c between version 1.14 and 1.15

version 1.14, 2014/10/17 20:19:15 version 1.15, 2015/03/15 00:41:28
Line 34 
Line 34 
   
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/time.h>  #include <sys/time.h>
 #include <tzfile.h>  
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
Line 101 
Line 100 
                         } else                          } else
                                 (void)printf("    *  ");                                  (void)printf("    *  ");
                         p = ctime(&w->loginat);                          p = ctime(&w->loginat);
                         if (now - w->loginat < SECSPERDAY * (DAYSPERWEEK - 1))  
                           if (now - w->loginat < SECSPERDAY * 6)
                                 (void)printf("   %.3s", p);                                  (void)printf("   %.3s", p);
                         else                          else
                                 (void)printf("%.6s", p + 4);                                  (void)printf("%.6s", p + 4);
                         if (now - w->loginat >= SECSPERDAY * DAYSPERNYEAR / 2)                          if (now - w->loginat >= SIXMONTHS)
                                 (void)printf(" %.4s ", p + 20);                                  (void)printf(" %.4s ", p + 20);
                         else                          else
                                 (void)printf(" %.5s", p + 11);                                  (void)printf(" %.5s", p + 11);

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15