summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/edit.c
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2005-05-31 10:54:05 +0000
committerxsa <xsa@openbsd.org>2005-05-31 10:54:05 +0000
commita2aea329298dff46c2c3a433da55cb74bdffb723 (patch)
tree485ff193c5e0a3a5ee49348d1651ac986dd74386 /usr.bin/cvs/edit.c
parentLock the apic with a mutex, not a SIMPLE_LOCK. (diff)
downloadwireguard-openbsd-a2aea329298dff46c2c3a433da55cb74bdffb723.tar.xz
wireguard-openbsd-a2aea329298dff46c2c3a433da55cb74bdffb723.zip
add some comments ..
Diffstat (limited to 'usr.bin/cvs/edit.c')
-rw-r--r--usr.bin/cvs/edit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/edit.c b/usr.bin/cvs/edit.c
index 03198223e2a..688a14e1d76 100644
--- a/usr.bin/cvs/edit.c
+++ b/usr.bin/cvs/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.5 2005/05/31 08:58:47 xsa Exp $ */
+/* $OpenBSD: edit.c,v 1.6 2005/05/31 10:54:05 xsa Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -111,6 +111,10 @@ cvs_edit_init(struct cvs_cmd *cmd, int argc, char **argv, int *arg)
while ((ch = getopt(argc, argv, cmd->cmd_opts)) != -1) {
switch (ch) {
case 'a':
+ /*
+ * The `editors' and `unedit' commands do not have
+ * the -a option. Check which command has been issued.
+ */
if (cvs_cmdop != CVS_OP_EDIT)
return (CVS_EX_USAGE);
break;