summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-01-02 17:38:18 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-01-02 17:38:18 +0000
commitc9f567a19583bfc0e89e019011fa8e2b4f19ec45 (patch)
tree226600680ab4bac01237c52291b740d97c9a112f /usr.bin
parent96af2c48d41fcff619401b2bdf01d419cbfe7da4 (diff)
zap, kill and eliminate unused code;
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/proto.c39
1 files changed, 1 insertions, 38 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c
index dc039b94690..04ccb3071f7 100644
--- a/usr.bin/cvs/proto.c
+++ b/usr.bin/cvs/proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proto.c,v 1.85 2006/01/02 08:11:56 xsa Exp $ */
+/* $OpenBSD: proto.c,v 1.86 2006/01/02 17:38:17 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -731,43 +731,6 @@ cvs_sendresp(u_int rid, const char *arg)
}
-#ifdef notyet
-/*
- * cvs_getreq()
- *
- * Get a request from the client.
- */
-int
-cvs_getreq(void)
-{
- int nbcmd;
-
- nbcmd = 0;
-
- do {
- /* wait for incoming data */
- if (fgets(cvs_proto_buf, (int)sizeof(cvs_proto_buf),
- stdin) == NULL) {
- if (feof(stdin))
- return (0);
- cvs_log(LP_ERRNO,
- "failed to read request from client");
- return (-1);
- }
-
- if ((len = strlen(cvs_proto_buf)) != 0) {
- if (cvs_proto_buf[len - 1] != '\n') {
- /* truncated line */
- } else
- cvs_proto_buf[--len] = '\0';
- }
-
- ret = cvs_resp_handle(cvs_proto_buf);
- } while (ret == 0);
-}
-#endif
-
-
/*
* cvs_sendln()
*