From d9b6b238fa4502d20760fcb6e02a9c550fad83fc Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Wed, 23 Aug 2006 20:28:48 +0000 Subject: use the correct variable in error and warning messages --- usr.bin/rcs/ci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') 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 * 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; } -- cgit v1.2.3