summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsprog.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/rcsprog.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/rcsprog.c')
-rw-r--r--usr.bin/rcs/rcsprog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c
index 0c6c45a766c..3b9d32eac6a 100644
--- a/usr.bin/rcs/rcsprog.c
+++ b/usr.bin/rcs/rcsprog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsprog.c,v 1.132 2006/08/16 07:39:15 ray Exp $ */
+/* $OpenBSD: rcsprog.c,v 1.133 2006/10/12 17:20:12 niallo Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -305,7 +305,7 @@ rcs_main(int argc, char **argv)
for (i = 0; i < argc; i++) {
fd = rcs_choosefile(argv[i], fpath, sizeof(fpath));
if (fd < 0 && !(flags & RCS_CREATE)) {
- warnx("%s", fpath);
+ warn("%s", fpath);
continue;
}
@@ -372,7 +372,7 @@ rcs_main(int argc, char **argv)
ofd = rcs_choosefile(oldfilename, ofpath, sizeof(ofpath));
if (ofd < 0) {
if (!(flags & RCS_CREATE))
- warnx("%s", ofpath);
+ warn("%s", ofpath);
exit(1);
}
if ((oldfile = rcs_open(ofpath, ofd, RCS_READ)) == NULL)