From 8910e56c45fde68b6067da68e09b9d0c92696530 Mon Sep 17 00:00:00 2001 From: Jean-Francois Brousseau Date: Wed, 8 Dec 2004 16:07:44 +0000 Subject: add a small protection to avoid reconnecting to a server to which we are already connected. instead, cvs will print a notice. --- usr.bin/cvs/cvs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin/cvs/cvs.h') diff --git a/usr.bin/cvs/cvs.h b/usr.bin/cvs/cvs.h index de53f601ac4..1c6d8370ecf 100644 --- a/usr.bin/cvs/cvs.h +++ b/usr.bin/cvs/cvs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.h,v 1.35 2004/12/07 17:10:56 tedu Exp $ */ +/* $OpenBSD: cvs.h,v 1.36 2004/12/08 16:07:43 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -128,6 +128,8 @@ struct cvs_op { }; +#define CVS_ROOT_CONNECTED 0x01 + struct cvsroot { char *cr_str; u_int cr_method; @@ -140,6 +142,7 @@ struct cvsroot { u_int cr_ref; /* connection data */ + u_int cr_flags; FILE *cr_srvin; FILE *cr_srvout; FILE *cr_srverr; -- cgit v1.2.3