summaryrefslogtreecommitdiffstats
path: root/usr.bin/lastcomm
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-12-13 03:14:06 +0000
committerdelphij <delphij@FreeBSD.org>2009-12-13 03:14:06 +0000
commit0842b7d53ffede64468e775f5c79965e3d9e48ae (patch)
treeec0e60a06ede057b5afe3f1a6eccc05036f5c424 /usr.bin/lastcomm
parent7510724a04e34e0c4cdf7551cd6e74fb053368e8 (diff)
downloadFreeBSD-src-0842b7d53ffede64468e775f5c79965e3d9e48ae.zip
FreeBSD-src-0842b7d53ffede64468e775f5c79965e3d9e48ae.tar.gz
Revert most part of 200420 as requested, as more review and polish is
needed.
Diffstat (limited to 'usr.bin/lastcomm')
-rw-r--r--usr.bin/lastcomm/lastcomm.c3
-rw-r--r--usr.bin/lastcomm/readrec.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c
index b5ca6dd..8c55123 100644
--- a/usr.bin/lastcomm/lastcomm.c
+++ b/usr.bin/lastcomm/lastcomm.c
@@ -51,6 +51,9 @@ __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/readrec.c b/usr.bin/lastcomm/readrec.c
index 5de7c5c..4883b2a 100644
--- a/usr.bin/lastcomm/readrec.c
+++ b/usr.bin/lastcomm/readrec.c
@@ -33,9 +33,13 @@ __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);
OpenPOWER on IntegriCloud