Skip to content

Commit 6b94e89

Browse files
1010101001010101Anas Nashif
authored andcommitted
samples/net: Fix format warning in the HTTP client sample app
Fix a printk format warning found at the HTTP client sample app. Jira: ZEP-1872 Change-Id: I9665e3e59595b383d6e809af51fe4cf3cd8f8bd8 Signed-off-by: Flavio Santes <[email protected]> (cherry picked from commit 2b66787a9344c41fb807b4b680a57a7f2edf6689)
1 parent 79bd106 commit 6b94e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/net/http_client/src/http_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int http_send_request(struct http_client_ctx *http_ctx, const char *method,
9696

9797
rc = snprintk(content_len_str, sizeof(content_len_str),
9898
"\r\nContent-Length: %u\r\n\r\n",
99-
strlen(payload));
99+
(unsigned int)strlen(payload));
100100
if (rc <= 0 || rc >= sizeof(content_len_str)) {
101101
rc = -ENOMEM;
102102
goto lb_exit;

0 commit comments

Comments
 (0)