1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

sync usage() w/ synopsis; from Pierre Riteau

ok sobrado
This commit is contained in:
jmc 2007-10-31 16:29:50 +00:00
parent 42e9115005
commit 6526ffedd4
2 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: head.c,v 1.13 2006/10/09 00:24:36 tedu Exp $ */
/* $OpenBSD: head.c,v 1.14 2007/10/31 16:29:50 jmc Exp $ */
/*
* Copyright (c) 1980, 1987 Regents of the University of California.
@ -34,7 +34,7 @@ static const char copyright[] =
"@(#) Copyright (c) 1980, 1987 Regents of the University of California.\n\
All rights reserved.\n";
/*static char sccsid[] = "from: @(#)head.c 5.5 (Berkeley) 6/1/90";*/
static const char rcsid[] = "$OpenBSD: head.c,v 1.13 2006/10/09 00:24:36 tedu Exp $";
static const char rcsid[] = "$OpenBSD: head.c,v 1.14 2007/10/31 16:29:50 jmc Exp $";
#endif /* not lint */
#include <stdio.h>
@ -116,6 +116,6 @@ main(int argc, char *argv[])
static void
usage(void)
{
fputs("usage: head [-n line_count] [file ...]\n", stderr);
fputs("usage: head [-count | -n count] [file ...]\n", stderr);
exit(1);
}

View File

@ -1,4 +1,4 @@
/* $OpenBSD: tail.c,v 1.13 2006/03/22 19:43:29 kjell Exp $ */
/* $OpenBSD: tail.c,v 1.14 2007/10/31 16:29:50 jmc Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -42,7 +42,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)tail.c 8.1 (Berkeley) 6/6/93";
#endif
static char rcsid[] = "$OpenBSD: tail.c,v 1.13 2006/03/22 19:43:29 kjell Exp $";
static char rcsid[] = "$OpenBSD: tail.c,v 1.14 2007/10/31 16:29:50 jmc Exp $";
#endif /* not lint */
#include <sys/types.h>
@ -301,6 +301,7 @@ static void
usage(void)
{
(void)fprintf(stderr,
"usage: tail [-f | -r] [-b # | -c # | -n #] [file ...]\n");
"usage: tail [-f | -r] "
"[-b number | -c number | -n number | -number] [file ...]\n");
exit(1);
}