about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTWriter.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-11-10 19:47:00 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-11-10 19:47:00 -0500
commitd3f9d5478df478427c2aa5db4507ddd0a38f0eb6 (patch)
treee27eacd6bbda653dd77f11cc020b9e0a59f7f4fc /WWW/Library/Implementation/HTWriter.c
parent18024037b515bfff83e0230b35151babe6005e18 (diff)
downloadlynx-snapshots-d3f9d5478df478427c2aa5db4507ddd0a38f0eb6.tar.gz
snapshot of project "lynx", label v2-8-2dev_2
Diffstat (limited to 'WWW/Library/Implementation/HTWriter.c')
-rw-r--r--WWW/Library/Implementation/HTWriter.c12
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;