diff options
author | Xin LI <delphij@FreeBSD.org> | 2009-12-11 23:35:38 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2009-12-11 23:35:38 +0000 |
commit | 6f2d322192a3949db6e0f0b4bad4c763abc52bed (patch) | |
tree | 1c4d97908b52dc5263d006038b9af6b5ca886ca8 /usr.bin/lastcomm | |
parent | e87862f53a119884d2103da7ba52cf7d14426803 (diff) | |
download | src-6f2d322192a3949db6e0f0b4bad4c763abc52bed.tar.gz src-6f2d322192a3949db6e0f0b4bad4c763abc52bed.zip |
Remove unneeded header includes from usr.bin/ except contributed code.
Tested with: make universe
Notes
Notes:
svn path=/head/; revision=200420
Diffstat (limited to 'usr.bin/lastcomm')
-rw-r--r-- | usr.bin/lastcomm/lastcomm.c | 3 | ||||
-rw-r--r-- | usr.bin/lastcomm/pathnames.h | 4 | ||||
-rw-r--r-- | usr.bin/lastcomm/readrec.c | 4 |
3 files changed, 2 insertions, 9 deletions
diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c index 8c551231a4fc..b5ca6dddd378 100644 --- a/usr.bin/lastcomm/lastcomm.c +++ b/usr.bin/lastcomm/lastcomm.c @@ -51,9 +51,6 @@ __FBSDID("$FreeBSD$"); #include <ctype.h> #include <err.h> -#include <errno.h> -#include <fcntl.h> -#include <grp.h> #include <pwd.h> #include <stdio.h> #include <stdlib.h> diff --git a/usr.bin/lastcomm/pathnames.h b/usr.bin/lastcomm/pathnames.h index 0737970dab93..04af44020648 100644 --- a/usr.bin/lastcomm/pathnames.h +++ b/usr.bin/lastcomm/pathnames.h @@ -31,8 +31,8 @@ * SUCH DAMAGE. * * @(#)pathnames.h 8.1 (Berkeley) 6/6/93 + * + * $FreeBSD$ */ -#include <paths.h> - #define _PATH_ACCT "/var/account/acct" diff --git a/usr.bin/lastcomm/readrec.c b/usr.bin/lastcomm/readrec.c index 4883b2a4ef88..5de7c5c4c808 100644 --- a/usr.bin/lastcomm/readrec.c +++ b/usr.bin/lastcomm/readrec.c @@ -33,13 +33,9 @@ __FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/acct.h> -#include <ctype.h> -#include <err.h> #include <errno.h> -#include <fcntl.h> #include <stddef.h> #include <stdio.h> -#include <stdlib.h> #include <string.h> int readrec_forward(FILE *f, struct acctv2 *av2); |