Skip to content
Commit b80a058e authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Benjamin Cabé
Browse files

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: default avatarJukka Rissanen <jukka.rissanen@nordicsemi.no>
parent 2c3294b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment