mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-29 11:32:13 +01:00
fix warnings around clang-diagnostic-embedded-directive and readability-uppercase-literal-suffix; update wolfSentry integration for upcoming release 0.8.0.
This commit is contained in:
@@ -799,20 +799,19 @@ doExit:
|
||||
if (exitWithRet)
|
||||
return err;
|
||||
|
||||
printf(
|
||||
#if !defined(__MINGW32__)
|
||||
"wolfSSL Client Benchmark %zu bytes\n"
|
||||
#ifdef __MINGW32__
|
||||
#define SIZE_FMT "%d"
|
||||
#define SIZE_TYPE int
|
||||
#else
|
||||
"wolfSSL Client Benchmark %d bytes\n"
|
||||
#define SIZE_FMT "%zu"
|
||||
#define SIZE_TYPE size_t
|
||||
#endif
|
||||
printf(
|
||||
"wolfSSL Client Benchmark " SIZE_FMT " bytes\n"
|
||||
"\tConnect %8.3f ms\n"
|
||||
"\tTX %8.3f ms (%8.3f MBps)\n"
|
||||
"\tRX %8.3f ms (%8.3f MBps)\n",
|
||||
#if !defined(__MINGW32__)
|
||||
throughput,
|
||||
#else
|
||||
(int)throughput,
|
||||
#endif
|
||||
(SIZE_TYPE)throughput,
|
||||
conn_time * 1000,
|
||||
tx_time * 1000, throughput / tx_time / 1024 / 1024,
|
||||
rx_time * 1000, throughput / rx_time / 1024 / 1024
|
||||
@@ -4456,7 +4455,8 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
exit:
|
||||
|
||||
#ifdef WOLFSSL_WOLFSENTRY_HOOKS
|
||||
wolfsentry_ret = wolfsentry_shutdown(&wolfsentry);
|
||||
wolfsentry_ret =
|
||||
wolfsentry_shutdown(WOLFSENTRY_CONTEXT_ARGS_OUT_EX(&wolfsentry));
|
||||
if (wolfsentry_ret < 0) {
|
||||
fprintf(stderr,
|
||||
"wolfsentry_shutdown() returned " WOLFSENTRY_ERROR_FMT "\n",
|
||||
|
||||
Reference in New Issue
Block a user