diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-05-24 04:12:26 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-05-24 04:12:26 +0000 |
commit | e87333a6ae634b7bf229d48ef588b1d14f02dfd9 (patch) | |
tree | 396538c572f6c7daddebc26b58e9a8d17572caef /usr.bin/cvs/version.c | |
parent | 686088575a6a7d8fbc8bd29e3bd4b823134d7c22 (diff) |
Merge the cvs_cmd and cvs_cmd_info structures and add the necessary
fields to hook local versions of the commands. This needs to go in
before it gets any bigger
ok joris
Diffstat (limited to 'usr.bin/cvs/version.c')
-rw-r--r-- | usr.bin/cvs/version.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/usr.bin/cvs/version.c b/usr.bin/cvs/version.c index ac57ae10259..dd08e103227 100644 --- a/usr.bin/cvs/version.c +++ b/usr.bin/cvs/version.c @@ -1,4 +1,4 @@ -/* $OpenBSD: version.c,v 1.10 2005/05/12 23:46:31 joris Exp $ */ +/* $OpenBSD: version.c,v 1.11 2005/05/24 04:12:25 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -35,15 +35,26 @@ #include "cvs.h" #include "proto.h" -int cvs_version_sendflags(struct cvsroot *); +static int cvs_version_sendflags (struct cvsroot *); -struct cvs_cmd_info cvs_version = { +struct cvs_cmd cvs_cmd_version = { + CVS_OP_VERSION, CVS_REQ_VERSION, "version", + { "ve", "ver" }, + "Show current CVS version(s)", + "", + "", + NULL, + 0, NULL, cvs_version_sendflags, - NULL, NULL, NULL, CF_NOFILES, 0, 0 + NULL, + NULL, + NULL, + NULL, + 0 }; -int +static int cvs_version_sendflags(struct cvsroot *root) { if ((root != NULL) && (root->cr_method != CVS_METHOD_LOCAL)) |