Skip to content
Commit c6cc87c5 authored by Robert Lubos's avatar Robert Lubos Committed by Carles Cufí
Browse files

log: net: Fix build warning with IPv6 disabled



Building the net logger backend with IPv4 only gives the following
warning:

log_backend_net.c:116:31: warning: array subscript 'struct sockaddr[0]'
is partly outside array bounds of 'struct sockaddr_in[1]'
[-Warray-bounds] local_addr->sa_family = server_addr.sa_family;

hence assign the address family directly to sockaddr_in/6 structs.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 7d91281c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment