Also remove uH/uL macros.

This commit is contained in:
Elliot Glaysher 2019-04-15 15:14:07 -07:00
parent 1e468f75d6
commit 29d40e032e
3 changed files with 6 additions and 12 deletions

View File

@ -1010,13 +1010,6 @@
void
u3_term_io_loja(int x);
/* uL, uH: wrap hijack/lojack around fprintf.
**
** uL(fprintf(uH, ...));
*/
# define uH u3_term_io_hija()
# define uL(x) u3_term_io_loja(x)
/** Ames, packet networking.
**/

View File

@ -12,7 +12,8 @@ u3l_log(const char* format, ...)
va_start(myargs, format);
if (u3C.stderr_log_f) {
// the user set their own logging function. render the line and redirect to them
// the user set their own logging function. render the line and redirect
// to them.
//
char msg[4096];
vsnprintf(msg, 4096, format, myargs);

View File

@ -1142,8 +1142,8 @@ _http_init_tls(uv_buf_t key_u, uv_buf_t cer_u)
if( 0 == sas_i ) {
u3l_log("http: load private key failed:\n");
ERR_print_errors_fp(uH);
uL(1);
ERR_print_errors_fp(u3_term_io_hija());
u3_term_io_loja(1);
SSL_CTX_free(tls_u);
@ -1160,8 +1160,8 @@ _http_init_tls(uv_buf_t key_u, uv_buf_t cer_u)
if( 0 == sas_i ) {
u3l_log("http: load certificate failed:\n");
ERR_print_errors_fp(uH);
uL(1);
ERR_print_errors_fp(u3_term_io_hija());
u3_term_io_loja(1);
BIO_free(bio_u);
SSL_CTX_free(tls_u);