From fb522fc0f16c2014219340fd52160bf3571becdb Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 11 May 1997 04:48:07 +0000 Subject: [PATCH] removed duplicate copy of `set_buffer_size' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1692 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/ftp.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index a9777ddfe..f013c5971 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -591,18 +591,6 @@ copy_stream(FILE *from, FILE *to) return bytes; } -static void -set_buffer_size(int fd, int read) -{ -#if defined(SO_RCVBUF) && defined(SO_SNDBUF) && defined(HAVE_SETSOCKOPT) - size_t size = 1048576; - while(size >= 131072 && - setsockopt(fd, SOL_SOCKET, read ? SO_RCVBUF : SO_SNDBUF, - (void *)&size, sizeof(size)) < 0) - size /= 2; -#endif -} - void sendrequest(char *cmd, char *local, char *remote, int printnames) {