aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
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));
}