Skip to content

Commit c3958e1

Browse files
juhaylinenanangl
authored andcommitted
net: nrf_provisioning: change addrinfo to zsock_addrinfo
Use zsock_addrinfo to avoid dependency on the POSIX subsystem. Remove CONFIG_POSIX_API from provisioning tests. Signed-off-by: Juha Ylinen <[email protected]>
1 parent 2e626b5 commit c3958e1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

subsys/net/lib/nrf_provisioning/src/nrf_provisioning_coap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ LOG_MODULE_REGISTER(nrf_provisioning_coap, CONFIG_NRF_PROVISIONING_LOG_LEVEL);
5555
static const char *resp_path = "p/rsp";
5656
static const char *dtls_suspend = "/.dtls/suspend";
5757

58-
static struct addrinfo *address;
58+
static struct zsock_addrinfo *address;
5959
static struct coap_client client;
6060
static bool socket_keep_open;
6161

tests/subsys/net/lib/nrf_provisioning/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ elseif(CONFIG_NRF_PROVISIONING_COAP)
4242
-DCONFIG_COAP_CLIENT_MESSAGE_HEADER_SIZE=48
4343
-DCONFIG_COAP_CLIENT_MESSAGE_SIZE=512
4444
-DCONFIG_COAP_CLIENT_STACK_SIZE=1024
45-
-DCONFIG_POSIX_API=y
4645
-DCONFIG_MODEM_INFO_BUFFER_SIZE=128
4746
-DCONFIG_COAP_CLIENT_MAX_REQUESTS=2
4847
-DCONFIG_COAP_CLIENT_BLOCK_SIZE=256

0 commit comments

Comments
 (0)