aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-31 06:53:38 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-31 06:53:38 +0000
commit0318e71e86068a7c1789cb6e1a54a29df112d263 (patch)
treee83a41e649e0694e143b94a676653d0a850dd33c /socket.c
parentf9f66749c22dcb49ed96d9aa43c4979d7b27742f (diff)
downloadfetchmail-0318e71e86068a7c1789cb6e1a54a29df112d263.tar.gz
fetchmail-0318e71e86068a7c1789cb6e1a54a29df112d263.tar.bz2
fetchmail-0318e71e86068a7c1789cb6e1a54a29df112d263.zip
STEP 5: SockPrintf() conversion.
svn path=/trunk/; revision=448
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/socket.c b/socket.c
index dff4be58..ae38cd32 100644
--- a/socket.c
+++ b/socket.c
@@ -195,11 +195,11 @@ FILE *sockfp;
}
#if defined(HAVE_STDARG_H)
-int SockPrintf(int socket, char* format, ...)
+int SockPrintf(FILE *sockfp, char* format, ...)
{
#else
-int SockPrintf(socket,format,va_alist)
-int socket;
+int SockPrintf(sockfp,format,va_alist)
+FILE *sockfp;
char *format;
va_dcl {
#endif
@@ -214,7 +214,7 @@ va_dcl {
#endif
vsprintf(buf, format, ap);
va_end(ap);
- return SockWrite(socket, buf, strlen(buf));
+ return SockWrite(fileno(sockfp), buf, strlen(buf));
}