for (qp = &d->output.head; ((cur = *qp) != NULL);) {
#ifdef COMPILE_CONSOLE
- if (d->descriptor == 0) {
- cnt = write(STDOUT_FILENO, cur->start, cur->nchars);
- }
-#else /* COMPILE_CONSOLE */
+ cnt = write(STDOUT_FILENO, cur->start, cur->nchars);
+#else
#ifdef HAS_OPENSSL
if (d->ssl) {
cnt = 0;
return 1; /* Need to retry */
} else {
#endif
-#endif /* COMPILE_CONSOLE */
cnt = send(d->descriptor, cur->start, cur->nchars, 0);
if (cnt < 0) {
#ifdef WIN32
return 1;
return 0;
}
-#ifndef COMPILE_CONSOLE
#ifdef HAS_OPENSSL
}
#endif
-#endif
+#endif /* COMPILE_CONSOLE */
d->output_size -= cnt;
d->output_chars += cnt;
if (cnt == cur->nchars) {