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

Diff for /src/usr.bin/w/w.c between version 1.31 and 1.32

version 1.31, 2000/12/23 02:07:49 version 1.32, 2001/01/31 17:42:26
Line 100 
Line 100 
 char           *sel_user;       /* login of particular user selected */  char           *sel_user;       /* login of particular user selected */
 char            domain[MAXHOSTNAMELEN];  char            domain[MAXHOSTNAMELEN];
   
   #define NAME_WIDTH      8
   #define HOST_WIDTH      16
   
 /*  /*
  * One of these per active utmp entry.   * One of these per active utmp entry.
  */   */
Line 337 
Line 340 
                         p = buf;                          p = buf;
                 }                  }
                 (void)printf("%-*.*s %-2.2s %-*.*s ",                  (void)printf("%-*.*s %-2.2s %-*.*s ",
                     UT_NAMESIZE, UT_NAMESIZE, ep->utmp.ut_name,                      NAME_WIDTH, UT_NAMESIZE, ep->utmp.ut_name,
                     strncmp(ep->utmp.ut_line, "tty", 3) ?                      strncmp(ep->utmp.ut_line, "tty", 3) ?
                     ep->utmp.ut_line : ep->utmp.ut_line + 3,                      ep->utmp.ut_line : ep->utmp.ut_line + 3,
                     UT_HOSTSIZE, UT_HOSTSIZE, *p ? p : "-");                      HOST_WIDTH, HOST_WIDTH, *p ? p : "-");
                 pr_attime(&ep->utmp.ut_time, &now);                  pr_attime(&ep->utmp.ut_time, &now);
                 pr_idle(ep->idle);                  pr_idle(ep->idle);
                 pr_args(ep->kp);                  pr_args(ep->kp);

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32