From c5187000c71672b7aa0f0345b9545431b83b69d0 Mon Sep 17 00:00:00 2001 From: Ray Lai Date: Tue, 18 Apr 2006 02:46:22 +0000 Subject: Remove -h flag from rcs_getopt loop, which is not in GNU. OK xsa@ --- usr.bin/rcs/ci.c | 6 +----- usr.bin/rcs/rcsprog.c | 8 ++------ 2 files changed, 3 insertions(+), 11 deletions(-) (limited to 'usr.bin/rcs') 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 * 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 * 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; -- cgit v1.2.3