sd-netlink: use setsockopt_int() also for NETLINK_ADD/DROP_MEMBERSHIP
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Mar 2021 16:24:57 +0000 (17:24 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Mar 2021 16:26:24 +0000 (17:26 +0100)
commit4fa024683c19259be356f5602124b1208b9d0f2d
tree99212b27e80e677e5c9f0bbb571b2d90ea56332c
parent64a65bab590f79f6520756d04e2a820a389a3209
sd-netlink: use setsockopt_int() also for NETLINK_ADD/DROP_MEMBERSHIP

We use 'unsigned' as the type, but netlink(7) says the type is 'int'.
It doesn't really matter, since they are both the same size. Let's use
our helper to shorten the code a bit.
src/libsystemd/sd-netlink/netlink-socket.c