diff options
author | 2005-03-28 23:08:24 +0000 | |
---|---|---|
committer | 2005-03-28 23:08:24 +0000 | |
commit | c9b1930aa8e6b3c632f18badc83aeb5b44cc05f7 (patch) | |
tree | 4200d5cfbe8629ecbbc61a434290769a5d11431e | |
parent | build with the yacc date parser (diff) | |
download | wireguard-openbsd-c9b1930aa8e6b3c632f18badc83aeb5b44cc05f7.tar.xz wireguard-openbsd-c9b1930aa8e6b3c632f18badc83aeb5b44cc05f7.zip |
dead code
-rw-r--r-- | usr.bin/cvs/cvs/Makefile | 4 | ||||
-rw-r--r-- | usr.bin/cvs/server.c | 11 |
2 files changed, 3 insertions, 12 deletions
diff --git a/usr.bin/cvs/cvs/Makefile b/usr.bin/cvs/cvs/Makefile index ce71c7135e5..167f33e68ff 100644 --- a/usr.bin/cvs/cvs/Makefile +++ b/usr.bin/cvs/cvs/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.21 2005/03/28 23:07:36 jfb Exp $ +# $OpenBSD: Makefile,v 1.22 2005/03/28 23:08:24 jfb Exp $ .PATH: ${.CURDIR}/.. @@ -8,7 +8,7 @@ MAN= cvs.1 cvsrc.5 cvsintro.7 SRCS= cvs.c add.c admin.c annotate.c buf.c checkout.c commit.c date.y diff.c \ entries.c file.c getlog.c history.c hist.c import.c init.c log.c \ logmsg.c proto.c rcs.c rcsnum.c remove.c req.c resp.c root.c \ - server.c sock.c status.c strtab.c tag.c update.c util.c version.c + server.c status.c strtab.c tag.c update.c util.c version.c BINDIR= /usr/bin BINOWN= root diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c index c475a12c595..31c9f6ed433 100644 --- a/usr.bin/cvs/server.c +++ b/usr.bin/cvs/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.6 2004/12/07 17:10:56 tedu Exp $ */ +/* $OpenBSD: server.c,v 1.7 2005/03/28 23:08:24 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -36,7 +36,6 @@ #include "cvs.h" #include "log.h" -#include "sock.h" #include "proto.h" @@ -71,12 +70,6 @@ cvs_server(int argc, char **argv) (void)setvbuf(stdin, NULL, _IOLBF, 0); (void)setvbuf(stdout, NULL, _IOLBF, 0); - if (cvs_sock_connect(CVSD_SOCK_PATH) < 0) { - cvs_log(LP_ERR, "failed to connect to CVS server socket"); - return (-1); - } - - for (;;) { if (fgets(reqbuf, sizeof(reqbuf), stdin) == NULL) { if (feof(stdin)) @@ -99,7 +92,5 @@ cvs_server(int argc, char **argv) } - cvs_sock_disconnect(); - return (0); } |