From 0318e71e86068a7c1789cb6e1a54a29df112d263 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 31 Oct 1996 06:53:38 +0000 Subject: STEP 5: SockPrintf() conversion. svn path=/trunk/; revision=448 --- socket.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'socket.c') 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)); } -- cgit v1.2.3