diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-05-19 07:52:39 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-05-19 07:52:39 +0000 |
commit | bcf7dcbfd61b094c36599b2e303a35e1402d8699 (patch) | |
tree | 2debaee185f6e192c5c75f5965bdd3023dd990ed /usr.bin | |
parent | 1680cee234b9729971e5d38d2cfb6d5a01334ecf (diff) |
fix printf + add missing printf when unlocking file (-u).
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 9 |
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); } |