From 953d3f75b51d811736897194878c6363e583653a Mon Sep 17 00:00:00 2001 From: Niall O'Higgins Date: Sat, 3 Dec 2005 17:11:59 +0000 Subject: - whoops, its -t-string or -tfile, not the other way around - sync checkin_usage() with reality --- usr.bin/rcs/ci.c | 10 +++++----- 1 file 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 * 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); -- cgit v1.2.3