summaryrefslogtreecommitdiffstats
path: root/apps/s_socket.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2015-06-04 14:26:55 -0400
committerRich Salz <rsalz@openssl.org>2015-06-09 12:48:55 -0400
commit7768e116dc0f2ad7c8d2241b887fc6c66d03e3bb (patch)
treebb758dbc279a225068e96c01c9ceae36f3b26b61 /apps/s_socket.c
parent51b04a6117510d8a771f619cb419985f4dec32bb (diff)
Use bio_err not stderr in apps.
Except for VMS startup code. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/s_socket.c')
-rw-r--r--apps/s_socket.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/s_socket.c b/apps/s_socket.c
index 1ca0d3a94a..c1faffc494 100644
--- a/apps/s_socket.c
+++ b/apps/s_socket.c
@@ -539,8 +539,7 @@ static int do_accept(int acc_sock, int *sock, char **host)
*/
goto redoit;
}
- fprintf(stderr, "errno=%d ", errno);
- perror("accept");
+ BIO_printf(bio_err, "accept errno=%d, %s\n", errno, strerror(errno));
# endif
return (0);
}
@@ -597,8 +596,7 @@ static int do_accept_unix(int acc_sock, int *sock)
*/
goto redoit;
}
- fprintf(stderr, "errno=%d ", errno);
- perror("accept");
+ BIO_printf(bio_err, "accept errno=%d, %s\n", errno, strerror(errno));
return (0);
}