From e87333a6ae634b7bf229d48ef588b1d14f02dfd9 Mon Sep 17 00:00:00 2001 From: Jean-Francois Brousseau Date: Tue, 24 May 2005 04:12:26 +0000 Subject: 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 --- usr.bin/cvs/version.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'usr.bin/cvs/version.c') 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 * 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)) -- cgit v1.2.3