summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2006-01-02 17:06:10 +0000
committerxsa <xsa@openbsd.org>2006-01-02 17:06:10 +0000
commitb9a6f00ee0621a2fa5965cb2342679ba19d523e3 (patch)
treed0699f3878ae87472bd9c7d07d824afeecc23e49 /usr.bin/cvs/diff.c
parent+.Xr tftp-proxy 8 , (diff)
downloadwireguard-openbsd-b9a6f00ee0621a2fa5965cb2342679ba19d523e3.tar.xz
wireguard-openbsd-b9a6f00ee0621a2fa5965cb2342679ba19d523e3.zip
- nuke remaining err(), errx() and warnx() instances.
- make cvs_log_init() return type void. ok joris@.
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index 8c55310f14a..c0bc3d323ad 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.75 2006/01/02 08:11:56 xsa Exp $ */
+/* $OpenBSD: diff.c,v 1.76 2006/01/02 17:06:10 xsa Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -1425,7 +1425,8 @@ fetch(long *f, int a, int b, FILE *lb, int ch, int oldfile)
for (j = 0, lastc = '\0'; j < nc; j++, lastc = c) {
if ((c = getc(lb)) == EOF) {
if (diff_format == D_RCSDIFF)
- warnx("No newline at end of file");
+ cvs_log(LP_WARN,
+ "No newline at end of file");
else
diff_output("\n\\ No newline at end of "
"file");