Skip to content
Commit 5d07c531 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Marti Bolivar
Browse files

net: sockets: do not unconstify 'optval' in setsockopt()



'optval' in setsockopt(..., SO_BINDTODEVICE, ...) was casted explicitly
from 'const void *' to 'struct ifreq *'. Rely on C implicit casting from
'const void *' to 'const struct ifreq *' and simply update variable
type. This prevents unwanted modification of ifreq value in the future.

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@emb.dev>
parent bc5432bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment