Commit d121e883 authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Anas Nashif
Browse files

samples: net: txtime: The option type should be int

When setting boolean options using setsockopt(), the option
type should be int as the size of the option type is checked
and only int is accepted.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@nordicsemi.no>
parent 2bfea20d
Loading
Loading
Loading
Loading
+1 −1
Changes for samples/net/sockets/txtime/src/main.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -263,7 +263,7 @@ static int create_socket(struct net_if *iface, struct sockaddr *peer)
{
	struct sockaddr local;
	socklen_t addrlen;
	bool optval;
	int optval;
	uint8_t priority;
	int sock;
	int ret;