summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsdiff.c
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2006-10-12 17:20:13 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2006-10-12 17:20:13 +0000
commitbdc4798954792a723add115bc31e25cb3b375e51 (patch)
tree6807a459dd4307aff82ca2f1f7628e71fde674c9 /usr.bin/rcs/rcsdiff.c
parent44d192008a21f40be662799964b12c429df4c0de (diff)
- convert some warnx() to warn(), which fixes a few stupidly un-informative error messages (found by tom@)
- make rcs_choosefile() save wrt errno, input from ray@ ok joris@ xsa@
Diffstat (limited to 'usr.bin/rcs/rcsdiff.c')
-rw-r--r--usr.bin/rcs/rcsdiff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c
index 24433d5edee..9c97203235a 100644
--- a/usr.bin/rcs/rcsdiff.c
+++ b/usr.bin/rcs/rcsdiff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsdiff.c,v 1.70 2006/09/22 13:42:43 jmc Exp $ */
+/* $OpenBSD: rcsdiff.c,v 1.71 2006/10/12 17:20:12 niallo Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -207,7 +207,7 @@ rcsdiff_main(int argc, char **argv)
for (i = 0; i < argc; i++) {
fd = rcs_choosefile(argv[i], fpath, sizeof(fpath));
if (fd < 0) {
- warnx("%s", fpath);
+ warn("%s", fpath);
continue;
}