summaryrefslogtreecommitdiffstats
path: root/usr.bin/rcs/diff.c
diff options
context:
space:
mode:
authorray <ray@openbsd.org>2010-07-15 18:19:18 +0000
committerray <ray@openbsd.org>2010-07-15 18:19:18 +0000
commit300eb659afff00eb7b1124052f29e8e86ff3a36e (patch)
tree31a0031effc946abb3f508a09e9b2748d4fb8d5f /usr.bin/rcs/diff.c
parentsync the elf types and their comments; ok millert (diff)
downloadwireguard-openbsd-300eb659afff00eb7b1124052f29e8e86ff3a36e.tar.xz
wireguard-openbsd-300eb659afff00eb7b1124052f29e8e86ff3a36e.zip
Use warnx instead of warn since errno wasn't set. From diff.
OK xsa stsp nicm
Diffstat (limited to 'usr.bin/rcs/diff.c')
-rw-r--r--usr.bin/rcs/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/diff.c b/usr.bin/rcs/diff.c
index e34cdaae409..7c5383ddbdc 100644
--- a/usr.bin/rcs/diff.c
+++ b/usr.bin/rcs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.27 2010/07/15 11:10:23 ray Exp $ */
+/* $OpenBSD: diff.c,v 1.28 2010/07/15 18:19:18 ray Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -1046,7 +1046,7 @@ fetch(long *f, int a, int b, FILE *lb, int ch, int oldfile, int flags)
for (j = 0; j < nc; j++) {
if ((c = getc(lb)) == EOF) {
if (diff_format == D_RCSDIFF)
- warn("No newline at end of file");
+ warnx("No newline at end of file");
else
diff_output("\n\\ No newline at end of "
"file");