summaryrefslogtreecommitdiffstats
path: root/usr.bin/lastcomm
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-07-21 12:01:47 +0000
committercharnier <charnier@FreeBSD.org>1997-07-21 12:01:47 +0000
commit6fc33a9dac1b111924ffab8c40d92bdd6f641583 (patch)
tree44c5fc3f97013ac0218856a834cb201801a05f5a /usr.bin/lastcomm
parente7e1e6ffbe6356833e14fa21067b959608f5f632 (diff)
downloadFreeBSD-src-6fc33a9dac1b111924ffab8c40d92bdd6f641583.zip
FreeBSD-src-6fc33a9dac1b111924ffab8c40d92bdd6f641583.tar.gz
Cosmetic in usage string.
Diffstat (limited to 'usr.bin/lastcomm')
-rw-r--r--usr.bin/lastcomm/lastcomm.18
-rw-r--r--usr.bin/lastcomm/lastcomm.c12
2 files changed, 11 insertions, 9 deletions
diff --git a/usr.bin/lastcomm/lastcomm.1 b/usr.bin/lastcomm/lastcomm.1
index 05455cf..7e84c7d 100644
--- a/usr.bin/lastcomm/lastcomm.1
+++ b/usr.bin/lastcomm/lastcomm.1
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" From: @(#)lastcomm.1 8.1 (Berkeley) 6/6/93
-.\" $Id$
+.\" $Id: lastcomm.1,v 1.5 1997/02/22 19:55:32 peter Exp $
.\"
.Dd September 18, 1996
.Dt LASTCOMM 1
@@ -39,7 +39,7 @@
.Nm lastcomm
.Nd show last commands executed in reverse order
.Sh SYNOPSIS
-.Nm lastcomm
+.Nm
.Op Fl EScesu
.Op Fl f Ar file
.Op Ar command ...
@@ -49,7 +49,7 @@
.Nm Lastcomm
gives information on previously executed commands.
With no arguments,
-.Nm lastcomm
+.Nm
prints information about all the commands recorded
during the current accounting file's lifetime.
.Pp
@@ -151,6 +151,6 @@ Default accounting file.
.Xr core 5
.Sh HISTORY
The
-.Nm lastcomm
+.Nm
command appeared in
.Bx 3.0 .
diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c
index 6d7b034..64aae8f 100644
--- a/usr.bin/lastcomm/lastcomm.c
+++ b/usr.bin/lastcomm/lastcomm.c
@@ -29,8 +29,6 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $Id: lastcomm.c,v 1.7 1997/03/29 04:30:24 imp Exp $
*/
#ifndef lint
@@ -40,7 +38,11 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
+#if 0
static char sccsid[] = "@(#)lastcomm.c 8.1 (Berkeley) 6/6/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/param.h>
@@ -62,7 +64,7 @@ time_t expand __P((u_int));
char *flagbits __P((int));
char *getdev __P((dev_t));
int requested __P((char *[], struct acct *));
-void usage __P((void));
+static void usage __P((void));
char *user_from_uid();
#define AC_UTIME 1 /* user */
@@ -291,10 +293,10 @@ getdev(dev)
return (lastname);
}
-void
+static void
usage()
{
(void)fprintf(stderr,
- "lastcomm [-EScesu] [ -f file ] [command ...] [user ...] [tty ...]\n");
+"usage: lastcomm [-EScesu] [ -f file ] [command ...] [user ...] [tty ...]\n");
exit(1);
}
OpenPOWER on IntegriCloud