summaryrefslogtreecommitdiff
path: root/usr.bin/lockf
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1997-07-22 07:32:23 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1997-07-22 07:32:23 +0000
commit3ec665d4828579ed6b3a43561e104937a264905f (patch)
treebfcea21e66b2436e96cdadd841557c15ff9d6dc6 /usr.bin/lockf
parent909293cd0d51062d023a1dd4c38a6c2da3cfe14d (diff)
downloadsrc-test-3ec665d4828579ed6b3a43561e104937a264905f.tar.gz
src-test-3ec665d4828579ed6b3a43561e104937a264905f.zip
lockf: usage : lockf -> usage: lockf by using fprintf instead of errx.
Notes
Notes: svn path=/head/; revision=27603
Diffstat (limited to 'usr.bin/lockf')
-rw-r--r--usr.bin/lockf/lockf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/lockf/lockf.c b/usr.bin/lockf/lockf.c
index 8541ce3ff1910..74f70d9ab5539 100644
--- a/usr.bin/lockf/lockf.c
+++ b/usr.bin/lockf/lockf.c
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: lockf.c,v 1.4 1997/02/22 19:55:54 peter Exp $
+ * $Id: lockf.c,v 1.5 1997/03/29 04:30:37 imp Exp $
*/
#include <sys/types.h>
@@ -192,7 +192,9 @@ timeout(int sig)
static void
usage(void)
{
- errx(EX_USAGE, "usage: lockf [-s] [-t seconds] file command [arguments]");
+ fprintf(stderr,
+ "usage: lockf [-s] [-t seconds] file command [arguments]\n");
+ exit(EX_USAGE);
}
/*