summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/rcsprog.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c
index c6f81881627..07aa2a9cfe5 100644
--- a/usr.bin/rcs/rcsprog.c
+++ b/usr.bin/rcs/rcsprog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsprog.c,v 1.126 2006/05/15 06:58:03 xsa Exp $ */
+/* $OpenBSD: rcsprog.c,v 1.127 2006/05/19 07:52:38 xsa Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -425,7 +425,7 @@ rcs_main(int argc, char **argv)
"revision %s", fpath, rev_str);
if (rcs_lock_add(file, username, rev) != -1 &&
!(rcsflags & QUIET))
- printf("%s locked\n", rev_str);
+ (void)fprintf(stderr, "%s locked\n", rev_str);
rcsnum_free(rev);
}
@@ -452,6 +452,11 @@ rcs_main(int argc, char **argv)
if (rcs_lock_remove(file, username, rev) == -1 &&
!(rcsflags & QUIET))
warnx("%s: warning: No locks are set.", fpath);
+ else {
+ if (!(rcsflags & QUIET))
+ (void)fprintf(stderr,
+ "%s unlocked\n", rev_str);
+ }
rcsnum_free(rev);
}