diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-29 19:01:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-29 19:01:19 +0000 |
commit | a0e46b222d5ef0e86d28111d7fd5b725dc4872bd (patch) | |
tree | 596bb6a4c957c3c73fc0fd5a611f62a69519794b /usr.bin | |
parent | 4d7c793c8c7cca6b45f239f86a6d486ce70d4096 (diff) |
cannot use errx for usage
Diffstat (limited to 'usr.bin')
-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); |