summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-02 17:34:11 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-02 17:34:11 +0000
commit57617783e6226d76b08d9c129e25dff6b0f7f970 (patch)
tree75b725b34d0400e734b37f87671d6290a432fec8
parent16fc4358c60882d3741adb169ae089d28fc2a3a7 (diff)
* wrap more code between program-dependent ifdef's and fix a bug while
we're at it
-rw-r--r--usr.bin/cvs/sock.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/cvs/sock.c b/usr.bin/cvs/sock.c
index 923faf27c24..7415f18e925 100644
--- a/usr.bin/cvs/sock.c
+++ b/usr.bin/cvs/sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sock.c,v 1.3 2004/08/02 17:30:10 jfb Exp $ */
+/* $OpenBSD: sock.c,v 1.4 2004/08/02 17:34:10 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -49,12 +49,16 @@ char *cvsd_sock_path = CVSD_SOCK_PATH;
/* daemon API */
+#ifdef CVSD
int cvsd_sock = -1;
static struct sockaddr_un cvsd_sun;
+#endif
/* for client API */
+#ifdef CVS
static int cvs_sock = -1;
static struct sockaddr_un cvs_sun;
+#endif
#ifdef CVSD
@@ -69,7 +73,7 @@ static struct sockaddr_un cvs_sun;
int
cvsd_sock_open(void)
{
- if (cvs_sock >= 0)
+ if (cvsd_sock >= 0)
cvsd_sock_close();
cvsd_sun.sun_family = AF_LOCAL;