From 514659414c792f8c252782af63551b6d09704a7b Mon Sep 17 00:00:00 2001 From: 607qwq Date: Fri, 21 Apr 2023 16:09:17 +0800 Subject: [PATCH] avoid mac make error --- examples/bootstrap_server/bootstrap_server.c | 2 +- examples/client/lwm2mclient.c | 2 +- examples/lightclient/lightclient.c | 2 +- examples/server/lwm2mserver.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/bootstrap_server/bootstrap_server.c b/examples/bootstrap_server/bootstrap_server.c index fb40e207f..8d598240a 100644 --- a/examples/bootstrap_server/bootstrap_server.c +++ b/examples/bootstrap_server/bootstrap_server.c @@ -88,7 +88,7 @@ void print_usage(const char *filename, const char *port) { fprintf(stdout, " -l PORT\tSet the local UDP port of the Bootstrap Server. Default: %s\r\n", port); fprintf(stdout, " -4\t\tUse IPv4 connection. Default: IPv6 connection\r\n"); fprintf(stdout, " -S BYTES\tCoAP block size. Options: 16, 32, 64, 128, 256, 512, 1024. Default: %" PRIu16 "\r\n", - LWM2M_COAP_DEFAULT_BLOCK_SIZE); + (uint16_t)LWM2M_COAP_DEFAULT_BLOCK_SIZE); fprintf(stdout, "\r\n"); } diff --git a/examples/client/lwm2mclient.c b/examples/client/lwm2mclient.c index 22111c8f5..0dbb3847f 100644 --- a/examples/client/lwm2mclient.c +++ b/examples/client/lwm2mclient.c @@ -853,7 +853,7 @@ void print_usage(void) fprintf(stdout, " -b\t\tBootstrap requested.\r\n"); fprintf(stdout, " -c\t\tChange battery level over time.\r\n"); fprintf(stdout, " -S BYTES\tCoAP block size. Options: 16, 32, 64, 128, 256, 512, 1024. Default: %" PRIu16 "\r\n", - LWM2M_COAP_DEFAULT_BLOCK_SIZE); + (uint16_t)LWM2M_COAP_DEFAULT_BLOCK_SIZE); #ifdef WITH_TINYDTLS fprintf(stdout, " -i STRING\tSet the device management or bootstrap server PSK identity. If not set use none secure mode\r\n"); fprintf(stdout, " -s HEXSTRING\tSet the device management or bootstrap server Pre-Shared-Key. If not set use none secure mode\r\n"); diff --git a/examples/lightclient/lightclient.c b/examples/lightclient/lightclient.c index bad379245..9a4d22294 100644 --- a/examples/lightclient/lightclient.c +++ b/examples/lightclient/lightclient.c @@ -202,7 +202,7 @@ void print_usage(void) fprintf(stdout, " -l PORT\tSet the local UDP port of the Client. Default: 56830\r\n"); fprintf(stdout, " -4\t\tUse IPv4 connection. Default: IPv6 connection\r\n"); fprintf(stdout, " -S BYTES\tCoAP block size. Options: 16, 32, 64, 128, 256, 512, 1024. Default: %" PRIu16 "\r\n", - LWM2M_COAP_DEFAULT_BLOCK_SIZE); + (uint16_t)LWM2M_COAP_DEFAULT_BLOCK_SIZE); fprintf(stdout, "\r\n"); } diff --git a/examples/server/lwm2mserver.c b/examples/server/lwm2mserver.c index 3df147bd1..df6976811 100644 --- a/examples/server/lwm2mserver.c +++ b/examples/server/lwm2mserver.c @@ -1013,7 +1013,7 @@ void print_usage(void) fprintf(stdout, " -4\t\tUse IPv4 connection. Default: IPv6 connection\r\n"); fprintf(stdout, " -l PORT\tSet the local UDP port of the Server. Default: "LWM2M_STANDARD_PORT_STR"\r\n"); fprintf(stdout, " -S BYTES\tCoAP block size. Options: 16, 32, 64, 128, 256, 512, 1024. Default: %" PRIu16 "\r\n", - LWM2M_COAP_DEFAULT_BLOCK_SIZE); + (uint16_t)LWM2M_COAP_DEFAULT_BLOCK_SIZE); fprintf(stdout, "\r\n"); }