--- nntp.c 2001/08/27 14:25:33 1.16
+++ nntp.c 2001/08/27 14:29:11 1.17
@@ -131,24 +131,19 @@
do {
if ((rc = nntp_readline(nntp, line, sizeof(line))) != NNTP_OK) {
- /*fprintf(stderr, "DEBUG: nntp_readline returned ***%d***\n", rc); */
return rc;
}
} while (line[0] == '1');
- /*fprintf(stderr, "DEBUG: nntp_readline got ***%s***\n", line); */
-
/* prepare for the INN kludge using 441 returns for other things but
* "Duplicate". Typical welcome string is "200 host InterNetNews NNRP
* server INN 2.3.2 ready (posting * ok)."
*/
if (strncmp(line, "200", 3) == 0 && strstr(line, " INN ") != NULL) {
nntp->kludgeinn441dup = TRUE;
- /*fprintf(stderr, "DEBUG: INN kludge activated!\n"); */
}
else {
nntp->kludgeinn441dup = FALSE;
- /*fprintf(stderr, "DEBUG: no INN kludge!\n"); */
}
if (strncmp(line, "200", 3) == 0)
@@ -212,7 +207,6 @@
buf[n] = '\0'; /* string termination */
if (n == (buflen-1))
return NNTP_ERR_OVERFLOW;
- /*fprintf(stderr, "DEBUG: nntp_readline <<<%s\n", buf); */
return NNTP_OK;
}
@@ -224,7 +218,6 @@
return NNTP_ERR_ARG;
strncpy(tmp, buf, NNTP_LINE_MAXLEN-3);
strcat(tmp, "\r\n");
- /*fprintf(stderr, "DEBUG: nntp_writeline >>>%s", tmp); */
if (nntp->io.write(nntp->wfd, tmp, strlen(tmp)) < 0)
return NNTP_ERR_SYSTEM;
return NNTP_OK;
@@ -342,7 +335,6 @@
if ((rc = nntp_readline(nntp, line, sizeof(line))) != NNTP_OK)
return rc;
- /*fprintf(stderr, "DEBUG: answer to post = ***%s***, rc = %s\n", line, nntp_error(rc)); */
if (strncmp(line, "240", 3) == 0)
return NNTP_OK;
@@ -419,7 +411,6 @@
if ((rc = nntp_readline(nntp, line, sizeof(line))) != NNTP_OK)
return rc;
- /*fprintf(stderr, "DEBUG: answer to post = ***%s***, rc = %s\n", line, nntp_error(rc)); */
if (strncmp(line, "235", 3) == 0)
return NNTP_OK;
|