Skip to content

Commit 7bf7e84

Browse files
committed
app: tests: Fix native_sim/native/64 build
Use size_t instead of int as a parameter for util_string_get(). Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
1 parent efa492d commit 7bf7e84

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/src/sm_at_socket.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ STATIC int handle_at_secure_socketopt(enum at_parser_cmd_type cmd_type,
16101610
if (op == AT_SOCKETOPT_SET) {
16111611
int value_int = 0;
16121612
char value_str[SM_MAX_URL] = {0};
1613-
int size = SM_MAX_URL;
1613+
size_t size = SM_MAX_URL;
16141614

16151615
err = at_parser_num_get(parser, 4, &value_int);
16161616
if (err == -EOPNOTSUPP) {
@@ -1683,7 +1683,7 @@ STATIC int handle_at_connect(enum at_parser_cmd_type cmd_type, struct at_parser
16831683
int err = -EINVAL;
16841684
int fd;
16851685
char url[SM_MAX_URL] = {0};
1686-
int size = SM_MAX_URL;
1686+
size_t size = SM_MAX_URL;
16871687
uint16_t port;
16881688
struct sm_socket *sock = NULL;
16891689

@@ -2012,7 +2012,7 @@ STATIC int handle_at_getaddrinfo(enum at_parser_cmd_type cmd_type, struct at_par
20122012
int err = -EINVAL;
20132013
char hostname[NI_MAXHOST];
20142014
char host[SM_MAX_URL];
2015-
int size = SM_MAX_URL;
2015+
size_t size = SM_MAX_URL;
20162016
struct nrf_addrinfo *result;
20172017
struct nrf_addrinfo *res;
20182018
char rsp_buf[256];

0 commit comments

Comments
 (0)