diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-04-18 02:46:22 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-04-18 02:46:22 +0000 |
commit | c5187000c71672b7aa0f0345b9545431b83b69d0 (patch) | |
tree | 7782af430828f4b8684d85dd90f35d14c816749e | |
parent | 75796aba10ee2b8f63f6661ad2f780c831f18bf9 (diff) |
Remove -h flag from rcs_getopt loop, which is not in GNU.
OK xsa@
-rw-r--r-- | usr.bin/rcs/ci.c | 6 | ||||
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 8 |
2 files changed, 3 insertions, 11 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index a3bd40f0fdd..6932b30183d 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.149 2006/04/17 12:03:19 ray Exp $ */ +/* $OpenBSD: ci.c,v 1.150 2006/04/18 02:46:21 ray Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -128,10 +128,6 @@ checkin_main(int argc, char **argv) rcs_setrevstr(&rev_str, rcs_optarg); pb.flags |= FORCE; break; - case 'h': - (usage)(); - exit(0); - /* NOTREACHED */ case 'I': rcs_setrevstr(&rev_str, rcs_optarg); pb.flags |= INTERACTIVE; diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index 6ef2a32fe82..2e51e82d38d 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.105 2006/04/17 12:11:07 xsa Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.106 2006/04/18 02:46:21 ray Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -29,7 +29,7 @@ #include "rcsprog.h" #define RCS_CMD_MAXARG 128 -#define RCSPROG_OPTSTRING "A:a:b::c:e::hik:Ll::m:Mn:N:o:qt::TUu::Vx::z::" +#define RCSPROG_OPTSTRING "A:a:b::c:e::ik:Ll::m:Mn:N:o:qt::TUu::Vx::z::" #define DESC_PROMPT "enter description, terminated with single '.' " \ "or end of file:\nNOTE: This is NOT the log message!" \ @@ -523,10 +523,6 @@ rcs_main(int argc, char **argv) elist = rcs_optarg; rcsflags |= RCSPROG_EFLAG; break; - case 'h': - (usage)(); - exit(0); - /* NOTREACHED */ case 'i': flags |= RCS_CREATE; break; |