summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsutil.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-05-08 21:55:40 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-05-08 21:55:40 +0000
commit1df58818144268ce51ca9c7f902f78807065224b (patch)
treea58248582fd5929a2931b8809c50bb42fb5b4b8a /usr.bin/rcs/rcsutil.c
parent23192d7b9f203c656777906e7045ffa1540ed790 (diff)
Use warnx() when errno is not set.
OK joris@.
Diffstat (limited to 'usr.bin/rcs/rcsutil.c')
-rw-r--r--usr.bin/rcs/rcsutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsutil.c b/usr.bin/rcs/rcsutil.c
index c1ce031ec7c..5a6df338b02 100644
--- a/usr.bin/rcs/rcsutil.c
+++ b/usr.bin/rcs/rcsutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsutil.c,v 1.8 2006/04/29 05:31:28 ray Exp $ */
+/* $OpenBSD: rcsutil.c,v 1.9 2006/05/08 21:55:39 ray Exp $ */
/*
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -284,7 +284,7 @@ rcs_statfile(char *fname, char *out, size_t len, int flags)
if (fd == -1 && !(flags & RCS_CREATE)) {
if (strcmp(__progname, "rcsclean") != 0 &&
strcmp(__progname, "ci") != 0)
- warn("%s", out);
+ warnx("%s", out);
return (-1);
}