From de3abacb11e92afb3bcd4cab39f97fc223b32b44 Mon Sep 17 00:00:00 2001 From: vdutta Date: Wed, 30 Dec 2020 12:47:56 +0530 Subject: [PATCH] Fix compilation of x86 image --- http.c | 2 +- notifications.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/http.c b/http.c index 35a3b59..8e0e1b9 100644 --- a/http.c +++ b/http.c @@ -115,7 +115,7 @@ http_get_response(void *buffer, size_t size, size_t rxed, char **msg_in) { char *c; - if (asprintf(&c, "%s%.*s", *msg_in, size * rxed, (char *)buffer) == -1) { + if (asprintf(&c, "%s%.*s", *msg_in, (int) (size * rxed), (char *)buffer) == -1) { FREE(*msg_in); return -1; } diff --git a/notifications.c b/notifications.c index b54b49d..ce4c8e7 100644 --- a/notifications.c +++ b/notifications.c @@ -310,7 +310,7 @@ void cwmp_lwnotification() udplw_server_param(&servaddr); xml_prepare_lwnotification_message(&msg_out); message_compute_signature(msg_out, signature); - asprintf(&msg, "%s \n %s: %s \n %s: %s \n %s: %d\n %s: %s\n\n%s", + asprintf(&msg, "%s \n %s: %s \n %s: %s \n %s: %zd\n %s: %s\n\n%s", "POST /HTTPS/1.1", "HOST", conf->lw_notification_hostname, "Content-Type", "test/xml; charset=utf-8",