summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-05-14 15:23:11 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-05-14 15:23:11 +0000
commit9972fe3b0bc4ffdcafdc3c9c69d8a65b08a53c25 (patch)
tree8529e5a4d51f0f57b39cc4fac61f1a591aa504d2
parent9f1667417ad1368c5ff651276e11769ced693b8c (diff)
warnx(); return(); --> errx();
-rw-r--r--usr.bin/rcs/rcsmerge.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/rcs/rcsmerge.c b/usr.bin/rcs/rcsmerge.c
index 04562083ecb..cff23ff4270 100644
--- a/usr.bin/rcs/rcsmerge.c
+++ b/usr.bin/rcs/rcsmerge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsmerge.c,v 1.44 2006/05/10 12:05:33 xsa Exp $ */
+/* $OpenBSD: rcsmerge.c,v 1.45 2006/05/14 15:23:10 xsa Exp $ */
/*
* Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org>
* All rights reserved.
@@ -134,10 +134,8 @@ rcsmerge_main(int argc, char **argv)
goto out;
if ((bp = rcs_diff3(file, argv[0], rev1, rev2,
- !(flags & QUIET))) == NULL) {
- warnx("failed to merge");
- goto out;
- }
+ !(flags & QUIET))) == NULL)
+ errx(D_ERROR, "failed to merge");
if (!(flags & QUIET)) {
(void)rcsnum_tostr(rev1, r1, sizeof(r1));