From a0e46b222d5ef0e86d28111d7fd5b725dc4872bd Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 29 Jun 1997 19:01:19 +0000 Subject: cannot use errx for usage --- usr.bin/readlink/readlink.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.bin/readlink/readlink.c') diff --git a/usr.bin/readlink/readlink.c b/usr.bin/readlink/readlink.c index 7be4c22fe1e..796c1cd2729 100644 --- a/usr.bin/readlink/readlink.c +++ b/usr.bin/readlink/readlink.c @@ -1,5 +1,5 @@ /* - * $OpenBSD: readlink.c,v 1.4 1997/06/28 04:56:49 grr Exp $ + * $OpenBSD: readlink.c,v 1.5 1997/06/29 19:01:18 deraadt Exp $ * * Copyright (c) 1997 * Kenneth Stailey (hereinafter referred to as the author) @@ -40,8 +40,10 @@ char **argv; char buf[PATH_MAX]; int n; - if (argc != 2) - errx(1, "usage: readlink symlink"); + if (argc != 2) { + frintf(stderr, "usage: readlink symlink"); + exit(1); + } if ((n = readlink(argv[1], buf, PATH_MAX)) < 0) exit(1); -- cgit v1.2.3