diff options
author | 1997-06-29 19:01:18 +0000 | |
---|---|---|
committer | 1997-06-29 19:01:18 +0000 | |
commit | f33474677e56344658fb2065e483475761fd1174 (patch) | |
tree | 172435875f7e1787646075be7c2981b1275c12b9 /usr.bin/readlink | |
parent | constrain lowwater >= highwater (diff) | |
download | wireguard-openbsd-f33474677e56344658fb2065e483475761fd1174.tar.xz wireguard-openbsd-f33474677e56344658fb2065e483475761fd1174.zip |
cannot use errx for usage
Diffstat (limited to 'usr.bin/readlink')
-rw-r--r-- | usr.bin/readlink/readlink.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); |