From d3f9d5478df478427c2aa5db4507ddd0a38f0eb6 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Tue, 10 Nov 1998 19:47:00 -0500 Subject: snapshot of project "lynx", label v2-8-2dev_2 --- WWW/Library/Implementation/HTWriter.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'WWW/Library/Implementation/HTWriter.c') 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 -#include #include #define BUFFER_SIZE 4096 /* Tradeoff */ -/*#include included by HTUtils.h -- FM */ - #include -#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; -- cgit 1.4.1-2-gfad0