summaryrefslogtreecommitdiff
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-06-25 22:38:12 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-06-25 22:38:12 +0000
commit284b6fcfefbb7f085ba843809394e881bacf1362 (patch)
tree06013bc78883688ac9961c135908f7e6221c0bff /usr.bin/diff/diffreg.c
parentfc47d643aeb4c551fd844817f7ab5ea9d115efd4 (diff)
fix unified diff output. ok millert@
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r--usr.bin/diff/diffreg.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index ec86dfd9643..e4c2123da31 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diffreg.c,v 1.17 2003/06/25 22:14:43 millert Exp $ */
+/* $OpenBSD: diffreg.c,v 1.18 2003/06/25 22:38:11 tedu Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -1165,23 +1165,23 @@ dump_unified_vec(void)
switch (ch) {
case 'c':
- fetch(ixold, lowa, a - 1, input[0], " ", 0);
- fetch(ixold, a, b, input[0], "- ", 0);
- fetch(ixnew, c, d, input[1], "+ ", 0);
+ fetch(ixold, lowa, a - 1, input[0], " ", 0);
+ fetch(ixold, a, b, input[0], "-", 0);
+ fetch(ixnew, c, d, input[1], "+", 0);
break;
case 'd':
- fetch(ixold, lowa, a - 1, input[0], " ", 0);
- fetch(ixold, a, b, input[0], "- ", 0);
+ fetch(ixold, lowa, a - 1, input[0], " ", 0);
+ fetch(ixold, a, b, input[0], "-", 0);
break;
case 'a':
- fetch(ixnew, lowc, c - 1, input[1], " ", 0);
- fetch(ixnew, c, d, input[1], "+ ", 0);
+ fetch(ixnew, lowc, c - 1, input[1], " ", 0);
+ fetch(ixnew, c, d, input[1], "+", 0);
break;
}
lowa = b + 1;
lowc = d + 1;
}
- fetch(ixnew, d + 1, upd, input[1], " ", 0);
+ fetch(ixnew, d + 1, upd, input[1], " ", 0);
context_vec_ptr = context_vec_start - 1;
}