Deleted Added
full compact
sprint.c (2537) sprint.c (7371)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Tony Nardo of the Johns Hopkins University/Applied Physics Lab.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 92 unchanged lines hidden (view full) ---

101 if (!w->loginat) {
102 (void)printf(" * * No logins ");
103 goto office;
104 }
105 (void)putchar(w->info == LOGGEDIN && !w->writable ?
106 '*' : ' ');
107 if (*w->tty)
108 (void)printf("%-2.2s ",
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Tony Nardo of the Johns Hopkins University/Applied Physics Lab.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 92 unchanged lines hidden (view full) ---

101 if (!w->loginat) {
102 (void)printf(" * * No logins ");
103 goto office;
104 }
105 (void)putchar(w->info == LOGGEDIN && !w->writable ?
106 '*' : ' ');
107 if (*w->tty)
108 (void)printf("%-2.2s ",
109 w->tty[0] != 't' || w->tty[1] != 't' ||
110 w->tty[2] != 'y' ? w->tty : w->tty + 3);
109 (strncmp(w->tty, "tty", 3)
110 && strncmp(w->tty, "cua", 3))
111 ? w->tty : w->tty + 3);
111 else
112 (void)printf(" ");
113 if (w->info == LOGGEDIN) {
114 stimeprint(w);
115 (void)printf(" ");
116 } else
117 (void)printf(" * ");
118 p = ctime(&w->loginat);

--- 42 unchanged lines hidden ---
112 else
113 (void)printf(" ");
114 if (w->info == LOGGEDIN) {
115 stimeprint(w);
116 (void)printf(" ");
117 } else
118 (void)printf(" * ");
119 p = ctime(&w->loginat);

--- 42 unchanged lines hidden ---