Remove unused #includes
This commit is contained in:
charnier 2001-02-06 20:13:48 +00:00
parent 54625370c6
commit 5c40738661
6 changed files with 27 additions and 52 deletions

View File

@ -69,7 +69,7 @@ if a ``:'' is present, or days if a ``d'' is present.
If it is an If it is an
.Dq * , .Dq * ,
the login time indicates the time of last login. the login time indicates the time of last login.
Login time is displayed as the dayname if less than 6 days, else month, day; Login time is displayed as the day name if less than 6 days, else month, day;
hours and minutes, unless more than six months ago, in which case the year hours and minutes, unless more than six months ago, in which case the year
is displayed rather than the hours and minutes. is displayed rather than the hours and minutes.
.Pp .Pp

View File

@ -53,10 +53,9 @@ static const char copyright[] =
#ifndef lint #ifndef lint
#if 0 #if 0
static char sccsid[] = "@(#)finger.c 8.5 (Berkeley) 5/4/95"; static char sccsid[] = "@(#)finger.c 8.5 (Berkeley) 5/4/95";
#else #endif
static const char rcsid[] = static const char rcsid[] =
"$FreeBSD$"; "$FreeBSD$";
#endif
#endif /* not lint */ #endif /* not lint */
/* /*
@ -73,12 +72,8 @@ static const char rcsid[] =
* well as home directory, shell, mail info, and .plan/.project files. * well as home directory, shell, mail info, and .plan/.project files.
*/ */
#include <sys/param.h>
#include <db.h> #include <db.h>
#include <err.h> #include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <pwd.h> #include <pwd.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -86,9 +81,7 @@ static const char rcsid[] =
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#include <utmp.h> #include <utmp.h>
#include <db.h>
#include <locale.h> #include <locale.h>
#include <sys/syslimits.h>
#include "finger.h" #include "finger.h"
#include "pathnames.h" #include "pathnames.h"

View File

@ -37,27 +37,22 @@
#ifndef lint #ifndef lint
#if 0 #if 0
static char sccsid[] = "@(#)lprint.c 8.3 (Berkeley) 4/28/95"; static char sccsid[] = "@(#)lprint.c 8.3 (Berkeley) 4/28/95";
#else #endif
static const char rcsid[] = static const char rcsid[] =
"$FreeBSD$"; "$FreeBSD$";
#endif
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h> #include <ctype.h>
#include <fcntl.h>
#include <time.h>
#include <db.h> #include <db.h>
#include <err.h> #include <err.h>
#include <pwd.h> #include <fcntl.h>
#include <utmp.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <paths.h> #include <paths.h>
#include <pwd.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <utmp.h>
#include "finger.h" #include "finger.h"
#include "pathnames.h" #include "pathnames.h"
#include "extern.h" #include "extern.h"

View File

@ -37,29 +37,23 @@
#ifndef lint #ifndef lint
#if 0 #if 0
static char sccsid[] = "@(#)net.c 8.4 (Berkeley) 4/28/95"; static char sccsid[] = "@(#)net.c 8.4 (Berkeley) 4/28/95";
#else #endif
static const char rcsid[] = static const char rcsid[] =
"$FreeBSD$"; "$FreeBSD$";
#endif
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <sys/uio.h>
#include <arpa/inet.h> #include <ctype.h>
#include <netdb.h>
#include <db.h> #include <db.h>
#include <err.h> #include <err.h>
#include <unistd.h> #include <netdb.h>
#include <pwd.h> #include <pwd.h>
#include <utmp.h>
#include <stdio.h> #include <stdio.h>
#include <ctype.h>
#include <string.h> #include <string.h>
#include <sys/uio.h> #include <unistd.h>
#include <signal.h> #include <utmp.h>
#include <limits.h>
#include "finger.h" #include "finger.h"
extern int lflag; /* XXX finger.h? */ extern int lflag; /* XXX finger.h? */

View File

@ -37,23 +37,18 @@
#ifndef lint #ifndef lint
#if 0 #if 0
static char sccsid[] = "@(#)sprint.c 8.3 (Berkeley) 4/28/95"; static char sccsid[] = "@(#)sprint.c 8.3 (Berkeley) 4/28/95";
#else #endif
static const char rcsid[] = static const char rcsid[] =
"$FreeBSD$"; "$FreeBSD$";
#endif
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
#include <db.h> #include <db.h>
#include <err.h> #include <err.h>
#include <pwd.h> #include <pwd.h>
#include <errno.h>
#include <utmp.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h>
#include <utmp.h>
#include "finger.h" #include "finger.h"
static void stimeprint __P((WHERE *)); static void stimeprint __P((WHERE *));

View File

@ -37,27 +37,25 @@
#ifndef lint #ifndef lint
#if 0 #if 0
static char sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/28/95"; static char sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/28/95";
#else #endif
static const char rcsid[] = static const char rcsid[] =
"$FreeBSD$"; "$FreeBSD$";
#endif
#endif /* not lint */ #endif /* not lint */
#include <sys/param.h> #include <sys/param.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <ctype.h>
#include <db.h> #include <db.h>
#include <err.h> #include <err.h>
#include <pwd.h>
#include <utmp.h>
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <fcntl.h>
#include <paths.h>
#include <pwd.h>
#include <stdio.h> #include <stdio.h>
#include <ctype.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <paths.h> #include <unistd.h>
#include <errno.h> #include <utmp.h>
#include "finger.h" #include "finger.h"
static void find_idle_and_ttywrite __P((WHERE *)); 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 * and if it's not any of the current logins
* can't use time comparison because there may be a small * 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) for (w = pn->whead; doit && w != NULL; w = w->next)
if (w->info == LOGGEDIN && if (w->info == LOGGEDIN &&