From a5250482ce77d5b936e7e57f7f9ddce3305a520c Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 23 Jun 2022 15:25:23 -0500 Subject: [PATCH] examples/: refactor a couple help strings to avoid hitting clang-tidy bugprone-suspicious-missing-comma. --- examples/client/client.c | 8 ++++---- examples/server/server.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/client/client.c b/examples/client/client.c index b961dcb23..926a93380 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -1165,12 +1165,12 @@ static const char* client_usage_msg[][70] = { "-D Override Date Errors example\n", /* 18 */ "-e List Every cipher suite available, \n", /* 19 */ "-g Send server HTTP GET\n", /* 20 */ - "-u Use UDP DTLS," #ifndef WOLFSSL_DTLS13 - " add -v 2 for DTLSv1, -v 3 for DTLSv1.2 (default)\n", /* 21 */ + "-u Use UDP DTLS, add -v 2 for DTLSv1, -v 3 for DTLSv1.2" + " (default)\n", /* 21 */ #else - " add -v 2 for DTLSv1, -v 3 for DTLSv1.2 (default), -v 4 for " - "DTLSv1.3\n", /* 21 */ + "-u Use UDP DTLS, add -v 2 for DTLSv1, -v 3 for DTLSv1.2" + " (default), -v 4 for DTLSv1.3\n", /* 21 */ #endif /* !WOLFSSL_DTLS13 */ #ifdef WOLFSSL_SCTP "-G Use SCTP DTLS," diff --git a/examples/server/server.c b/examples/server/server.c index b3f9133ca..fb1388fea 100644 --- a/examples/server/server.c +++ b/examples/server/server.c @@ -828,12 +828,12 @@ static const char* server_usage_msg[][64] = { "-d Disable client cert check\n", /* 12 */ "-b Bind to any interface instead of localhost only\n",/* 13 */ "-s Use pre Shared keys\n", /* 14 */ - "-u Use UDP DTLS," #ifndef WOLFSSL_DTLS13 - " add -v 2 for DTLSv1, -v 3 for DTLSv1.2 (default)\n", /* 21 */ + "-u Use UDP DTLS, add -v 2 for DTLSv1, -v 3 for DTLSv1.2" + " (default)\n", /* 15 */ #else - " add -v 2 for DTLSv1, -v 3 for DTLSv1.2 (default), -v 4 for " - "DTLSv1.3\n", /* 21 */ + "-u Use UDP DTLS, add -v 2 for DTLSv1, -v 3 for DTLSv1.2" + " (default), -v 4 for DTLSv1.3\n", /* 15 */ #endif /* !WOLFSSL_DTLS13 */ #ifdef WOLFSSL_SCTP "-G Use SCTP DTLS,"