diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 06:53:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-31 06:53:38 +0000 |
commit | 0318e71e86068a7c1789cb6e1a54a29df112d263 (patch) | |
tree | e83a41e649e0694e143b94a676653d0a850dd33c /socket.c | |
parent | f9f66749c22dcb49ed96d9aa43c4979d7b27742f (diff) | |
download | fetchmail-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)); } |