From a36cec2ff1b4659a6b13c64b202b72cc1d756e99 Mon Sep 17 00:00:00 2001 From: David Lin Date: Fri, 14 Feb 2020 22:14:48 +0800 Subject: [PATCH] Minor optimisation to the tcp_client code This is minor optimisation to the tcp_client code: Note that two lines, one is 'send mes error', the other is 'recv msg from server', the first 'mes' should be 'msg', for short. The code is more readable. --- examples/tcp_udp_base_lwip/tcp_client/tcp_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tcp_udp_base_lwip/tcp_client/tcp_client.c b/examples/tcp_udp_base_lwip/tcp_client/tcp_client.c index 47caa10a..34a762a4 100644 --- a/examples/tcp_udp_base_lwip/tcp_client/tcp_client.c +++ b/examples/tcp_udp_base_lwip/tcp_client/tcp_client.c @@ -38,7 +38,7 @@ void application_entry(void *arg) printf("send(%d): %s:%d :%s\n", ++cnt, server_ip, server_port, str); if ((send(socketfd, str, strlen(str), 0)) < 0) { - printf("send mes error: %s errno : %d\n", strerror(errno), errno); + printf("send msg error: %s errno : %d\n", strerror(errno), errno); goto tcp_client_exit; }