Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: net: http_get: Fix format string issue
This issue is seen by at least gcc 11.4.0 samples/net/sockets/http_get/src/http_get.c:44:40: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘ssize_t’ {aka ‘long int’} [-Wformat=] 44 | #define CHECK(r) { if (r < 0) { | printf("Error: %d\n", r); exit(1); } } | ^~~~~~~~~~~~~ samples/net/sockets/http_get/src/http_get.c:44:49: note: format string is defined here 44 | #define CHECK(r) { if (r < 0) { printf("Error: %d\n", r); exit(1); } } | ~^ | | | int | %ld Signed-off-by: Jukka Rissanen <[email protected]>
- Loading branch information