From d3636dd77fa8089a53c8f4789ecbb8b2c958f110 Mon Sep 17 00:00:00 2001 From: Niall O'Higgins Date: Sat, 15 Oct 2005 21:33:22 +0000 Subject: - sort rcs_getopt() switch cases, they got a bit mixed up along the way. --- usr.bin/rcs/ci.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'usr.bin/rcs') diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index 1fda68b950e..3e8285ffa9b 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.29 2005/10/15 19:45:23 niallo Exp $ */ +/* $OpenBSD: ci.c,v 1.30 2005/10/15 21:33:21 niallo Exp $ */ /* * Copyright (c) 2005 Niall O'Higgins * All rights reserved. @@ -115,16 +115,6 @@ checkin_main(int argc, char **argv) case 'h': (usage)(); exit(0); - case 'm': - rcs_msg = rcs_optarg; - interactive = 0; - break; - case 'q': - verbose = 0; - break; - case 'V': - printf("%s\n", rcs_version); - exit(0); case 'l': if (rcs_optarg != NULL) { if ((newrev = rcsnum_parse(rcs_optarg)) == NULL) { @@ -134,24 +124,34 @@ checkin_main(int argc, char **argv) } lkmode = LOCK_LOCK; break; - case 'u': + case 'm': + rcs_msg = rcs_optarg; + interactive = 0; + break; + case 'q': + verbose = 0; + break; + case 'r': + rflag = 1; if (rcs_optarg != NULL) { if ((newrev = rcsnum_parse(rcs_optarg)) == NULL) { cvs_log(LP_ERR, "bad revision number"); exit(1); } } - lkmode = LOCK_UNLOCK; break; - case 'r': - rflag = 1; + case 'u': if (rcs_optarg != NULL) { if ((newrev = rcsnum_parse(rcs_optarg)) == NULL) { cvs_log(LP_ERR, "bad revision number"); exit(1); } } + lkmode = LOCK_UNLOCK; break; + case 'V': + printf("%s\n", rcs_version); + exit(0); default: (usage)(); exit(1); -- cgit v1.2.3