summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/ci.c
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2005-12-03 17:11:59 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2005-12-03 17:11:59 +0000
commit953d3f75b51d811736897194878c6363e583653a (patch)
tree93393f0854c581414db92ea84daf06ff9f09f309 /usr.bin/rcs/ci.c
parent4aa57d5d5b45b560ede4a158ce3b64fe4fbaa62a (diff)
- whoops, its -t-string or -tfile, not the other way around
- sync checkin_usage() with reality
Diffstat (limited to 'usr.bin/rcs/ci.c')
-rw-r--r--usr.bin/rcs/ci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c
index c06aaa6003b..705bcc79ef7 100644
--- a/usr.bin/rcs/ci.c
+++ b/usr.bin/rcs/ci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ci.c,v 1.80 2005/12/03 16:50:48 niallo Exp $ */
+/* $OpenBSD: ci.c,v 1.81 2005/12/03 17:11:58 niallo Exp $ */
/*
* Copyright (c) 2005 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
@@ -80,8 +80,8 @@ checkin_usage(void)
fprintf(stderr,
"usage: ci [-MNqTV] [-d[date]] [-f[rev]] [-i[rev]] [-j[rev]]\n"
" [-kmode] [-l[rev]] [-M[rev]] [-mmsg] [-Nsymbol]\n"
- " [-nsymbol] [-r[rev]] [-sstate] [-u[rev]] [-wusername]\n"
- " [-xsuffixes] file ...\n");
+ " [-nsymbol] [-r[rev]] [-sstate] [-tfile] [-u[rev]]\n"
+ " [-wusername] [-xsuffixes] file ...\n");
}
@@ -593,6 +593,8 @@ checkin_init(struct checkin_params *pb)
else {
if (*pb->description == '-') {
pb->description++;
+ rcs_desc = (const char *)pb->description;
+ } else {
dp = cvs_buf_load(pb->description, BUF_AUTOEXT);
if (dp == NULL) {
cvs_log(LP_ERR,
@@ -607,8 +609,6 @@ checkin_init(struct checkin_params *pb)
}
rcs_desc = (const char *)cvs_buf_release(dp);
}
- else
- rcs_desc = (const char *)pb->description;
}
rcs_desc_set(pb->file, rcs_desc);