summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lastlogin
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2000-12-10 20:57:23 +0000
committercharnier <charnier@FreeBSD.org>2000-12-10 20:57:23 +0000
commitf360ce304c9b38425485e6b7c5afae7cf7665407 (patch)
treee03692057edadb1b38316764e4580a0cbfe1b85f /usr.sbin/lastlogin
parent2363c20c22895b1268269faa05394a00eb81d89f (diff)
downloadFreeBSD-src-f360ce304c9b38425485e6b7c5afae7cf7665407.zip
FreeBSD-src-f360ce304c9b38425485e6b7c5afae7cf7665407.tar.gz
Remove unused #includes, duplicate $FreeBSD$ and $NetBSD$ definitions.
Reviewed by: Ruslan Ermilov <ru@FreeBSD.org>
Diffstat (limited to 'usr.sbin/lastlogin')
-rw-r--r--usr.sbin/lastlogin/lastlogin.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.sbin/lastlogin/lastlogin.c b/usr.sbin/lastlogin/lastlogin.c
index 1d84cc3..e182591 100644
--- a/usr.sbin/lastlogin/lastlogin.c
+++ b/usr.sbin/lastlogin/lastlogin.c
@@ -1,5 +1,3 @@
-/* $FreeBSD$ */
-/* $NetBSD: lastlogin.c,v 1.4 1998/02/03 04:45:35 perry Exp $ */
/*
* Copyright (c) 1996 John M. Vinopal
* All rights reserved.
@@ -38,17 +36,13 @@ __RCSID("$FreeBSD$");
__RCSID("$NetBSD: lastlogin.c,v 1.4 1998/02/03 04:45:35 perry Exp $");
#endif
-#include <sys/types.h>
#include <err.h>
-#include <errno.h>
#include <pwd.h>
#include <stdio.h>
-#include <stdlib.h>
#include <time.h>
#include <utmp.h>
#include <unistd.h>
-extern char *__progname;
static const char *logfile = _PATH_LASTLOG;
int main __P((int, char **));
@@ -131,6 +125,6 @@ output(p, l)
static void
usage()
{
- fprintf(stderr, "usage: %s [user ...]\n", __progname);
+ fprintf(stderr, "usage: lastlogin [user ...]\n");
exit(1);
}
OpenPOWER on IntegriCloud