Deleted Added
full compact
sprint.c (63006) sprint.c (63007)
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

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

34 * SUCH DAMAGE.
35 */
36
37#ifndef lint
38#if 0
39static char sccsid[] = "@(#)sprint.c 8.3 (Berkeley) 4/28/95";
40#else
41static const char rcsid[] =
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

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

34 * SUCH DAMAGE.
35 */
36
37#ifndef lint
38#if 0
39static char sccsid[] = "@(#)sprint.c 8.3 (Berkeley) 4/28/95";
40#else
41static const char rcsid[] =
42 "$FreeBSD: head/usr.bin/finger/sprint.c 63006 2000-07-12 08:50:09Z asmodai $";
42 "$FreeBSD: head/usr.bin/finger/sprint.c 63007 2000-07-12 09:50:20Z asmodai $";
43#endif
44#endif /* not lint */
45
46#include <sys/types.h>
47#include <sys/time.h>
48#include <time.h>
49#include <db.h>
50#include <err.h>

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

104 for (w = pn->whead; w != NULL; w = w->next) {
105 namelen = MAXREALNAME;
106 if (w->info == LOGGEDIN && !w->writable)
107 --namelen; /* leave space before `*' */
108 (void)printf("%-*.*s %-*.*s", UT_NAMESIZE, UT_NAMESIZE,
109 pn->name, MAXREALNAME, namelen,
110 pn->realname ? pn->realname : "");
111 if (!w->loginat) {
43#endif
44#endif /* not lint */
45
46#include <sys/types.h>
47#include <sys/time.h>
48#include <time.h>
49#include <db.h>
50#include <err.h>

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

104 for (w = pn->whead; w != NULL; w = w->next) {
105 namelen = MAXREALNAME;
106 if (w->info == LOGGEDIN && !w->writable)
107 --namelen; /* leave space before `*' */
108 (void)printf("%-*.*s %-*.*s", UT_NAMESIZE, UT_NAMESIZE,
109 pn->name, MAXREALNAME, namelen,
110 pn->realname ? pn->realname : "");
111 if (!w->loginat) {
112 (void)printf(" * * No logins ");
112 (void)printf(" * * No logins ");
113 goto office;
114 }
115 (void)putchar(w->info == LOGGEDIN && !w->writable ?
116 '*' : ' ');
117 if (*w->tty)
118 (void)printf("%-3.3s ",
119 (strncmp(w->tty, "tty", 3)
120 && strncmp(w->tty, "cua", 3))

--- 54 unchanged lines hidden ---
113 goto office;
114 }
115 (void)putchar(w->info == LOGGEDIN && !w->writable ?
116 '*' : ' ');
117 if (*w->tty)
118 (void)printf("%-3.3s ",
119 (strncmp(w->tty, "tty", 3)
120 && strncmp(w->tty, "cua", 3))

--- 54 unchanged lines hidden ---