Skip to content

Commit d121e88

Browse files
jukkarnashif
authored andcommitted
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: Jukka Rissanen <[email protected]>
1 parent 2bfea20 commit d121e88

File tree

1 file changed

+1
-1
lines changed
  • samples/net/sockets/txtime/src

1 file changed

+1
-1
lines changed

samples/net/sockets/txtime/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ static int create_socket(struct net_if *iface, struct sockaddr *peer)
263263
{
264264
struct sockaddr local;
265265
socklen_t addrlen;
266-
bool optval;
266+
int optval;
267267
uint8_t priority;
268268
int sock;
269269
int ret;

0 commit comments

Comments
 (0)