aboutsummaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/socket.h b/socket.h
index 10a0a974..1d9d05bc 100644
--- a/socket.h
+++ b/socket.h
@@ -23,21 +23,13 @@ returns 0 for success.
*/
int SockGets(char *buf, int len, FILE *sockfp);
-/*
-Write a chunk of bytes to the socket.
-Returns 0 for success.
-*/
-int SockWrite(char *buf, int len, FILE *sockfp);
+/* Ship a character array to the socket */
+#define SockWrite(buf, len, sockfp) fwrite(buf, 1, len, sockfp)
/*
Send formatted output to the socket, followed
-by a CR-LF.
-Returns 0 for success.
+by a CR-LF. Returns 0 for success.
*/
-#if defined(HAVE_STDARG_H)
-int SockPrintf(FILE *sockfp, char *format, ...) ;
-#else
-int SockPrintf();
-#endif
-
+#define SockPrintf fprintf
+
#endif /* SOCKET__ */