diff options
author | delphij <delphij@FreeBSD.org> | 2009-12-11 23:35:38 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-12-11 23:35:38 +0000 |
commit | b963db4652a0bf1718825e8e1a9bc93e87b7a80f (patch) | |
tree | 1c4d97908b52dc5263d006038b9af6b5ca886ca8 /usr.bin/lastcomm | |
parent | f8bfec1fb23c300d6b8bb021cf4f7fdd21981c3f (diff) | |
download | FreeBSD-src-b963db4652a0bf1718825e8e1a9bc93e87b7a80f.zip FreeBSD-src-b963db4652a0bf1718825e8e1a9bc93e87b7a80f.tar.gz |
Remove unneeded header includes from usr.bin/ except contributed code.
Tested with: make universe
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 8c55123..b5ca6dd 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 0737970..04af440 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 4883b2a..5de7c5c 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); |