diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2001-03-04 08:30:07 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2001-03-04 08:30:07 +0000 |
| commit | 6f30f365fbe730d03b2d546a1f9332197c40fa52 (patch) | |
| tree | 1ebf8cedaf694f27eed32d934b258a75f4899a24 /usr.bin/finger | |
| parent | 9d0d90a5944be073b38427eee8bea8a417bc090b (diff) | |
Notes
Diffstat (limited to 'usr.bin/finger')
| -rw-r--r-- | usr.bin/finger/lprint.c | 17 | ||||
| -rw-r--r-- | usr.bin/finger/sprint.c | 11 | ||||
| -rw-r--r-- | usr.bin/finger/util.c | 18 |
3 files changed, 17 insertions, 29 deletions
diff --git a/usr.bin/finger/lprint.c b/usr.bin/finger/lprint.c index 688f16e90d73..a9d576236d5a 100644 --- a/usr.bin/finger/lprint.c +++ b/usr.bin/finger/lprint.c @@ -37,27 +37,22 @@ #ifndef lint #if 0 static char sccsid[] = "@(#)lprint.c 8.3 (Berkeley) 4/28/95"; -#else +#endif static const char rcsid[] = "$FreeBSD$"; -#endif #endif /* not lint */ -#include <sys/types.h> #include <sys/stat.h> -#include <sys/time.h> -#include <fcntl.h> -#include <time.h> +#include <ctype.h> #include <db.h> #include <err.h> +#include <fcntl.h> +#include <paths.h> #include <pwd.h> -#include <utmp.h> -#include <errno.h> -#include <unistd.h> #include <stdio.h> -#include <ctype.h> #include <string.h> -#include <paths.h> +#include <unistd.h> +#include <utmp.h> #include "finger.h" #include "pathnames.h" #include "extern.h" diff --git a/usr.bin/finger/sprint.c b/usr.bin/finger/sprint.c index 40b7d8273d8c..e373edbebe24 100644 --- a/usr.bin/finger/sprint.c +++ b/usr.bin/finger/sprint.c @@ -37,23 +37,18 @@ #ifndef lint #if 0 static char sccsid[] = "@(#)sprint.c 8.3 (Berkeley) 4/28/95"; -#else +#endif static const char rcsid[] = "$FreeBSD$"; -#endif #endif /* not lint */ -#include <sys/types.h> -#include <sys/time.h> -#include <time.h> #include <db.h> #include <err.h> #include <pwd.h> -#include <errno.h> -#include <utmp.h> #include <stdio.h> -#include <stdlib.h> #include <string.h> +#include <time.h> +#include <utmp.h> #include "finger.h" static void stimeprint __P((WHERE *)); diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c index eb9120629975..19e2f96d9d9d 100644 --- a/usr.bin/finger/util.c +++ b/usr.bin/finger/util.c @@ -37,27 +37,25 @@ #ifndef lint #if 0 static char sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/28/95"; -#else +#endif static const char rcsid[] = "$FreeBSD$"; -#endif #endif /* not lint */ #include <sys/param.h> #include <sys/stat.h> -#include <fcntl.h> +#include <ctype.h> #include <db.h> #include <err.h> -#include <pwd.h> -#include <utmp.h> #include <errno.h> -#include <unistd.h> +#include <fcntl.h> +#include <paths.h> +#include <pwd.h> #include <stdio.h> -#include <ctype.h> #include <stdlib.h> #include <string.h> -#include <paths.h> -#include <errno.h> +#include <unistd.h> +#include <utmp.h> #include "finger.h" static void find_idle_and_ttywrite __P((WHERE *)); @@ -138,7 +136,7 @@ enter_lastlog(pn) /* * and if it's not any of the current logins * can't use time comparison because there may be a small - * discrepency since login calls time() twice + * discrepancy since login calls time() twice */ for (w = pn->whead; doit && w != NULL; w = w->next) if (w->info == LOGGEDIN && |
