diff options
Diffstat (limited to 'WWW/Library/Implementation/HTWriter.c')
-rw-r--r-- | WWW/Library/Implementation/HTWriter.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/WWW/Library/Implementation/HTWriter.c b/WWW/Library/Implementation/HTWriter.c index 601bdb0a..c4dba35b 100644 --- a/WWW/Library/Implementation/HTWriter.c +++ b/WWW/Library/Implementation/HTWriter.c @@ -2,19 +2,15 @@ ** =========== ** */ + #include <HTUtils.h> -#include <tcp.h> #include <HTWriter.h> #define BUFFER_SIZE 4096 /* Tradeoff */ -/*#include <stdio.h> included by HTUtils.h -- FM */ - #include <LYLeaks.h> -#define FREE(x) if (x) {free(x); x = NULL;} - /* HTML Object ** ----------- */ @@ -52,8 +48,7 @@ PRIVATE void flush ARGS1(HTStream *, me) status = NETWRITE(me->soc, me->buffer, /* Put timeout? @@@ */ write_pointer - read_pointer); if (status<0) { - if(TRACE) fprintf(stderr, - "HTWrite: Error: write() on socket returns %d !!!\n", status); + CTRACE(tfp, "HTWrite: Error: write() on socket returns %d !!!\n", status); return; } read_pointer = read_pointer + status; @@ -108,8 +103,7 @@ PRIVATE void HTWriter_write ARGS3(HTStream *, me, CONST char*, s, int, l) int status = NETWRITE(me->soc, (char *)read_pointer, write_pointer - read_pointer); if (status<0) { - if(TRACE) fprintf(stderr, - "HTWriter_write: Error on socket output stream!!!\n"); + CTRACE(tfp, "HTWriter_write: Error on socket output stream!!!\n"); return; } read_pointer = read_pointer + status; |