summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2005-10-08 00:49:18 +0000
committerjoris <joris@openbsd.org>2005-10-08 00:49:18 +0000
commit9c5161e4bce4bc8a7fb1c5bd9ad214ff1ef8497c (patch)
tree64e7597e4fa7b338901d25d167487ec8666e5dff /usr.bin/cvs/diff.c
parentbasic `ci' support is here! more coming soon. (diff)
downloadwireguard-openbsd-9c5161e4bce4bc8a7fb1c5bd9ad214ff1ef8497c.tar.xz
wireguard-openbsd-9c5161e4bce4bc8a7fb1c5bd9ad214ff1ef8497c.zip
KNF;
from sir reyk@
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index 33ecb88e15a..a7cfa514093 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.58 2005/10/07 23:59:56 niallo Exp $ */
+/* $OpenBSD: diff.c,v 1.59 2005/10/08 00:49:18 joris Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -1469,8 +1469,9 @@ fetch(long *f, int a, int b, FILE *lb, int ch, int oldfile)
nc = f[i] - f[i - 1];
if (diff_format != D_IFDEF && ch != '\0') {
diff_output("%c", ch);
- if (Tflag && (diff_format == D_NORMAL || diff_format == D_CONTEXT
- || diff_format == D_UNIFIED))
+ if (Tflag && (diff_format == D_NORMAL ||
+ diff_format == D_CONTEXT ||
+ diff_format == D_UNIFIED))
diff_output("\t");
else if (diff_format != D_UNIFIED)
diff_output(" ");
@@ -1481,7 +1482,8 @@ fetch(long *f, int a, int b, FILE *lb, int ch, int oldfile)
if (diff_format == D_RCSDIFF)
warnx("No newline at end of file");
else
- diff_output("\n\\ No newline at end of file");
+ diff_output("\n\\ No newline at end of "
+ "file");
return (0);
}
if (c == '\t' && tflag) {