summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-10-05 11:52:17 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-10-05 11:52:17 +0000
commitbacfda01680bf46b16b2451839c345e4ef8c132c (patch)
treee5a2f4ecd34c7db830e2a318cccb19c2affc3a0d /usr.bin
parent67e530eda57ca0e7cc22d611479e58ccb6f6a374 (diff)
- stop gcc's yapping;
- better output when locking and unlocking revisions;
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/co.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c
index 89794c4416c..8a9d0deef6d 100644
--- a/usr.bin/rcs/co.c
+++ b/usr.bin/rcs/co.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: co.c,v 1.5 2005/10/05 00:44:19 joris Exp $ */
+/* $OpenBSD: co.c,v 1.6 2005/10/05 11:52:16 joris Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -55,6 +55,7 @@ checkout_main(int argc, char **argv)
lock = 0;
rev = RCS_HEAD_REV;
+ frev = NULL;
if ((username = getlogin()) == NULL) {
cvs_log(LP_ERR, "failed to get username");
@@ -162,8 +163,12 @@ checkout_main(int argc, char **argv)
rcs_close(file);
if (verbose) {
- printf("revision %s (%s)\n", buf, (lock == LOCK_LOCK) ?
- "locked" : "unlocked");
+ printf("revision %s ", buf);
+ if (lock == LOCK_LOCK)
+ printf("(locked)");
+ else if (lock == LOCK_UNLOCK)
+ printf("(unlocked)");
+ printf("\n");
printf("done\n");
}
}