aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2011-04-06 21:17:17 +0200
committerMatthias Andree <matthias.andree@gmx.de>2011-05-17 19:53:03 +0200
commit3574bad101432eebd71c0179c2ab8db2ecbd3db7 (patch)
tree2ddce4e851e5ca316fa7c64ec5e6f01fe3eeca36 /socket.c
parentcee84bd4d4632d5fe844692a62bb437bcf76339c (diff)
downloadfetchmail-3574bad101432eebd71c0179c2ab8db2ecbd3db7.tar.gz
fetchmail-3574bad101432eebd71c0179c2ab8db2ecbd3db7.tar.bz2
fetchmail-3574bad101432eebd71c0179c2ab8db2ecbd3db7.zip
Drop broken test code.
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c18
1 files changed, 0 insertions, 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 */