summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-01-14 20:58:44 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-01-14 20:58:44 +0000
commit4f6f16e4b8a6cca128b406f746c4140bdafee13a (patch)
treee9022b78627933e62c2753e2351a57a225f16df8
parent912448db9cc7ed1833193f96368b5dc4c09ac675 (diff)
minor knf and cleanup, and remove unneeded extern declarations, they
are now in cvs.h
-rw-r--r--usr.bin/cvs/proto.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c
index 81556cd3058..ceb8c558d60 100644
--- a/usr.bin/cvs/proto.c
+++ b/usr.bin/cvs/proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proto.c,v 1.38 2005/01/14 20:54:48 jfb Exp $ */
+/* $OpenBSD: proto.c,v 1.39 2005/01/14 20:58:43 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -49,12 +49,8 @@
#include <libgen.h>
#include <stdlib.h>
#include <unistd.h>
-#include <signal.h>
#include <string.h>
#include <sysexits.h>
-#ifdef CVS_ZLIB
-#include <zlib.h>
-#endif
#include "buf.h"
#include "cvs.h"
@@ -67,14 +63,6 @@
#define CVS_REQF_RESP 0x01
-extern int verbosity;
-extern int cvs_compress;
-extern char *cvs_rsh;
-extern int cvs_trace;
-extern int cvs_nolog;
-extern int cvs_readonly;
-extern int cvs_cmdop;
-
static int cvs_initlog (void);
struct cvs_req cvs_requests[] = {
@@ -509,7 +497,6 @@ cvs_resp_getbyname(const char *rname)
* Build a space-separated list of all the responses that this protocol
* implementation supports.
*/
-
char*
cvs_resp_getvalid(void)
{
@@ -605,11 +592,9 @@ cvs_sendfile(struct cvsroot *root, const char *path)
(void)close(fd);
return (-1);
}
-
}
(void)close(fd);
-
return (0);
}