aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-04 15:58:08 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-04 15:58:08 +0000
commit04fdca88243f7c19378104764157026d74ce8a6c (patch)
tree3d734e45bdc7130f7bee3dfb8e6221de2d3d2e8f /socket.c
parent561818f2308e1f1325a944755cb126cf74d6f91a (diff)
downloadfetchmail-04fdca88243f7c19378104764157026d74ce8a6c.tar.gz
fetchmail-04fdca88243f7c19378104764157026d74ce8a6c.tar.bz2
fetchmail-04fdca88243f7c19378104764157026d74ce8a6c.zip
True internal buffering with stdio!
svn path=/trunk/; revision=478
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/socket.c b/socket.c
index c4ef1513..974fd70e 100644
--- a/socket.c
+++ b/socket.c
@@ -66,38 +66,6 @@ int clientPort;
return sockfp;
}
-#if defined(HAVE_STDARG_H)
-int SockPrintf(FILE *sockfp, char* format, ...)
-{
-#else
-int SockPrintf(sockfp,format,va_alist)
-FILE *sockfp;
-char *format;
-va_dcl {
-#endif
-
- va_list ap;
- char buf[8192];
-
-#if defined(HAVE_STDARG_H)
- va_start(ap, format) ;
-#else
- va_start(ap);
-#endif
- vsprintf(buf, format, ap);
- va_end(ap);
- return SockWrite(buf, strlen(buf), sockfp);
-
-}
-
-int SockWrite(buf,len,sockfp)
-char *buf;
-int len;
-FILE *sockfp;
-{
- return(fputs(buf, sockfp));
-}
-
int SockGets(buf, len, sockfp)
char *buf;
int len;