summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-08-23 20:28:48 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-08-23 20:28:48 +0000
commitd9b6b238fa4502d20760fcb6e02a9c550fad83fc (patch)
tree22ea778339cfe7a9e37ccdd29b3033cbbf29f78e /usr.bin
parentde463bf93bddaa27546575105510c9b0f342bfbd (diff)
use the correct variable in error and warning messages
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/ci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c
index 3491d0ee06c..ecec047c827 100644
--- a/usr.bin/rcs/ci.c
+++ b/usr.bin/rcs/ci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ci.c,v 1.185 2006/08/16 07:39:15 ray Exp $ */
+/* $OpenBSD: ci.c,v 1.186 2006/08/23 20:28:47 joris Exp $ */
/*
* Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
@@ -268,7 +268,7 @@ checkin_main(int argc, char **argv)
if ((pb.flags & DESCRIPTION) &&
rcs_set_description(pb.file, pb.description) == -1)
- err(1, "%s", pb.file);
+ err(1, "%s", pb.filename);
if (!(pb.flags & QUIET))
(void)fprintf(stderr,
@@ -614,7 +614,7 @@ checkin_init(struct checkin_params *pb)
/* Get description from user */
if (pb->description == NULL &&
rcs_set_description(pb->file, NULL) == -1) {
- warn("%s", pb->file);
+ warn("%s", pb->filename);
goto fail;
}