summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2006-05-08 10:19:34 +0000
committerxsa <xsa@openbsd.org>2006-05-08 10:19:34 +0000
commitf50924f5af10bb7bdf48f4d89b47131d7e9267b1 (patch)
treef7a5e5211551c6b9ca234a08ed9432d2c8d48768
parentadd DIAGNOSTICS section. (diff)
downloadwireguard-openbsd-f50924f5af10bb7bdf48f4d89b47131d7e9267b1.tar.xz
wireguard-openbsd-f50924f5af10bb7bdf48f4d89b47131d7e9267b1.zip
fix error/verbose messages to match gnu/usr.bin/rcs when using rcsmerge(1).
-rw-r--r--usr.bin/rcs/diff3.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.bin/rcs/diff3.c b/usr.bin/rcs/diff3.c
index 8e2c4ae9429..271ae8fcf0a 100644
--- a/usr.bin/rcs/diff3.c
+++ b/usr.bin/rcs/diff3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff3.c,v 1.5 2006/05/04 07:06:58 xsa Exp $ */
+/* $OpenBSD: diff3.c,v 1.6 2006/05/08 10:19:34 xsa Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -72,7 +72,7 @@ static const char copyright[] =
#ifndef lint
static const char rcsid[] =
- "$OpenBSD: diff3.c,v 1.5 2006/05/04 07:06:58 xsa Exp $";
+ "$OpenBSD: diff3.c,v 1.6 2006/05/08 10:19:34 xsa Exp $";
#endif /* not lint */
#include "includes.h"
@@ -171,12 +171,12 @@ rcs_diff3(RCSFILE *rf, char *workfile, RCSNUM *rev1, RCSNUM *rev2, int verbose)
goto out;
if (verbose == 1)
- printf("Retrieving revision %s\n", r1);
+ (void)fprintf(stderr, "retrieving revision %s\n", r1);
if ((b2 = rcs_getrev(rf, rev1)) == NULL)
goto out;
if (verbose == 1)
- printf("Retrieving revision %s\n", r2);
+ (void)fprintf(stderr, "retrieving revision %s\n", r2);
if ((b3 = rcs_getrev(rf, rev2)) == NULL)
goto out;
@@ -235,11 +235,8 @@ rcs_diff3(RCSFILE *rf, char *workfile, RCSNUM *rev1, RCSNUM *rev2, int verbose)
if ((diffb = rcs_patchfile(data, patch, ed_patch_lines)) == NULL)
goto out;
- if (verbose == 1 && diff3_conflicts != 0) {
- warnx("%d conflict%s found during merge, "
- "please correct.", diff3_conflicts,
- (diff3_conflicts > 1) ? "s" : "");
- }
+ if (verbose == 1 && diff3_conflicts != 0)
+ warnx("warning: overlaps or other problems during merge");
xfree(data);
xfree(patch);