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

Diff for /src/usr.bin/last/last.c between version 1.15 and 1.16

version 1.15, 2001/07/12 05:17:13 version 1.16, 2001/07/18 17:17:39
Line 293 
Line 293 
                                                     bp->ut_name, UT_LINESIZE,                                                      bp->ut_name, UT_LINESIZE,
                                                     UT_LINESIZE, bp->ut_line,                                                      UT_LINESIZE, bp->ut_line,
                                                     HOST_WIDTH, UT_HOSTSIZE,                                                      HOST_WIDTH, UT_HOSTSIZE,
                                                     bp->ut_host, bp->ut_time);                                                      bp->ut_host, (long)bp->ut_time);
                                         } else {                                          } else {
                                                 ct = ctime(&bp->ut_time);                                                  ct = ctime(&bp->ut_time);
                                                 printf("%-*.*s  %-*.*s %-*.*s %10.10s %*.*s \n",                                                  printf("%-*.*s  %-*.*s %-*.*s %10.10s %*.*s \n",
Line 321 
Line 321 
                                         NAME_WIDTH, UT_NAMESIZE, bp->ut_name,                                          NAME_WIDTH, UT_NAMESIZE, bp->ut_name,
                                         UT_LINESIZE, UT_LINESIZE, bp->ut_line,                                          UT_LINESIZE, UT_LINESIZE, bp->ut_line,
                                         HOST_WIDTH, UT_HOSTSIZE, bp->ut_host,                                          HOST_WIDTH, UT_HOSTSIZE, bp->ut_host,
                                         bp->ut_time);                                          (long)bp->ut_time);
                                         } else {                                          } else {
                                                 ct = ctime(&bp->ut_time);                                                  ct = ctime(&bp->ut_time);
                                 printf("%-*.*s  %-*.*s %-*.*s %10.10s %*.*s \n",                                  printf("%-*.*s  %-*.*s %-*.*s %10.10s %*.*s \n",
Line 360 
Line 360 
                                         NAME_WIDTH, UT_NAMESIZE, bp->ut_name,                                          NAME_WIDTH, UT_NAMESIZE, bp->ut_name,
                                         UT_LINESIZE, UT_LINESIZE, bp->ut_line,                                          UT_LINESIZE, UT_LINESIZE, bp->ut_line,
                                         HOST_WIDTH, UT_HOSTSIZE, bp->ut_host,                                          HOST_WIDTH, UT_HOSTSIZE, bp->ut_host,
                                         bp->ut_time);                                          (long)bp->ut_time);
                                 } else {                                  } else {
                                         ct = ctime(&bp->ut_time);                                          ct = ctime(&bp->ut_time);
                                 printf("%-*.*s  %-*.*s %-*.*s %10.10s %*.*s ",                                  printf("%-*.*s  %-*.*s %-*.*s %10.10s %*.*s ",
Line 378 
Line 378 
                                         } else {                                          } else {
                                                 if (seconds)                                                  if (seconds)
                                                         printf("- %ld",                                                          printf("- %ld",
                                                             T->logout);                                                              (long)T->logout);
                                                 else                                                  else
                                                         printf("- %*.*s",                                                          printf("- %*.*s",
                                                             timesize, timesize,                                                              timesize, timesize,
Line 386 
Line 386 
                                         }                                          }
                                         delta = T->logout - bp->ut_time;                                          delta = T->logout - bp->ut_time;
                                         if (seconds)                                          if (seconds)
                                                 printf("  (%ld)\n", delta);                                                  printf("  (%ld)\n", (long)delta);
                                         else {                                          else {
                                                 if (delta < SECSPERDAY)                                                  if (delta < SECSPERDAY)
                                                         printf("  (%*.*s)\n",                                                          printf("  (%*.*s)\n",

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