summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.h
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-08 16:07:44 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-08 16:07:44 +0000
commit8910e56c45fde68b6067da68e09b9d0c92696530 (patch)
tree04881938b006ce0ca4c6c65d2b0ded04a2d87ebe /usr.bin/cvs/cvs.h
parentbaa89893d8da7b8999d8a6e0ce39fa4d161d2bd1 (diff)
add a small protection to avoid reconnecting to a server to which we
are already connected. instead, cvs will print a notice.
Diffstat (limited to 'usr.bin/cvs/cvs.h')
-rw-r--r--usr.bin/cvs/cvs.h5
1 files changed, 4 insertions, 1 deletions
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 <jfb@openbsd.org>
* 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;