mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-07 17:57:16 +01:00
Fix compilation of x86 image
This commit is contained in:
parent
71ac908626
commit
de3abacb11
2 changed files with 2 additions and 2 deletions
2
http.c
2
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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue