diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-10-15 21:33:22 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-10-15 21:33:22 +0000 |
commit | d3636dd77fa8089a53c8f4789ecbb8b2c958f110 (patch) | |
tree | fe94f31d963042a66d83bbeb4a4a225a382455e9 | |
parent | 41f65192659d14d856042ef878cf9b1587bb75b1 (diff) |
- sort rcs_getopt() switch cases, they got a bit mixed up along the way.
-rw-r--r-- | usr.bin/rcs/ci.c | 30 |
1 files changed, 15 insertions, 15 deletions
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 <niallo@openbsd.org> * 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); |