From 3574bad101432eebd71c0179c2ab8db2ecbd3db7 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 6 Apr 2011 21:17:17 +0200 Subject: Drop broken test code. --- socket.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/socket.c b/socket.c index 5573b4ee..26e37de8 100644 --- a/socket.c +++ b/socket.c @@ -1069,21 +1069,3 @@ static ssize_t cygwin_read(int sock, void *buf, size_t count) return count; } #endif /* __CYGWIN__ */ - -#ifdef MAIN -/* - * Use the chargen service to test input buffering directly. - * You may have to uncomment the `chargen' service description in your - * inetd.conf (and then SIGHUP inetd) for this to work. */ -main() -{ - int sock = SockOpen("localhost", "chargen", NULL); - char buf[80]; - - while (SockRead(sock, buf, sizeof(buf)-1)) - SockWrite(1, buf, strlen(buf)); - SockClose(sock); -} -#endif /* MAIN */ - -/* socket.c ends here */ -- cgit v1.2.3