Skip to content

Commit

Permalink
net: lib: lwm2m_client_utils: Use zsock_* API
Browse files Browse the repository at this point in the history
One setsockopt() call was not using zsock_* socket functions.

Signed-off-by: Juha Ylinen <[email protected]>
  • Loading branch information
juhaylinen authored and anangl committed Jan 21, 2025
1 parent e13bc0f commit dcd9488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/net/lib/lwm2m_client_utils/lwm2m/lwm2m_rai.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static void lwm2m_set_socket_state(int sock_fd, enum lwm2m_socket_states state)
}

LOG_DBG("Set socket option SO_RAI with value %s\n", opt_names[state]);
ret = setsockopt(sock_fd, SOL_SOCKET, SO_RAI, &optval, sizeof(optval));
ret = zsock_setsockopt(sock_fd, SOL_SOCKET, SO_RAI, &optval, sizeof(optval));

if (ret < 0) {
ret = -errno;
Expand Down

0 comments on commit dcd9488

Please sign in to comment.