summaryrefslogtreecommitdiff
path: root/usr.bin/find/operator.c
diff options
context:
space:
mode:
authorTom Cosgrove <tom@cvs.openbsd.org>2004-06-02 15:00:52 +0000
committerTom Cosgrove <tom@cvs.openbsd.org>2004-06-02 15:00:52 +0000
commit38997b1affe99cef643cdb2a6ad9550b134da4a8 (patch)
tree5deddf5635439a59750251f6269be7caa30d30ca /usr.bin/find/operator.c
parentdd49b356647131e67a9a33b8b309f1aacd8d228b (diff)
Use errx() rather than err() when errno isn't set.
ok otto@
Diffstat (limited to 'usr.bin/find/operator.c')
-rw-r--r--usr.bin/find/operator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/find/operator.c b/usr.bin/find/operator.c
index 2c977292c5d..7abd6c3a051 100644
--- a/usr.bin/find/operator.c
+++ b/usr.bin/find/operator.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: operator.c,v 1.8 2003/06/26 07:27:29 deraadt Exp $ */
+/* $OpenBSD: operator.c,v 1.9 2004/06/02 15:00:51 tom Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -34,7 +34,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)operator.c 8.1 (Berkeley) 6/6/93";*/
-static char rcsid[] = "$OpenBSD: operator.c,v 1.8 2003/06/26 07:27:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: operator.c,v 1.9 2004/06/02 15:00:51 tom Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -91,7 +91,7 @@ yankexpr(PLAN **planp) /* pointer to top of plan (modified) */
if (node->type == N_OPENPAREN)
for (tail = subplan = NULL;;) {
if ((next = yankexpr(planp)) == NULL)
- err(1, "(: missing closing ')'");
+ errx(1, "(: missing closing ')'");
/*
* If we find a closing ')' we store the collected
* subplan in our '(' node and convert the node to