mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 22:10:14 +01:00
core/platform: fix passing wrong type to variadic function nl_socket_add_memberships
nl_socket_add_memberships expects a variadic list of int, NULL is possibly defined as ((void *) 0) or 0L. Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
2fd8d40a5a
commit
616fdb35ea
1 changed files with 4 additions and 4 deletions
|
|
@ -2763,10 +2763,10 @@ setup (NMPlatform *platform)
|
|||
nle = nl_socket_set_buffer_size (priv->nlh_event, 131072, 0);
|
||||
g_assert (!nle);
|
||||
nle = nl_socket_add_memberships (priv->nlh_event,
|
||||
RTNLGRP_LINK,
|
||||
RTNLGRP_IPV4_IFADDR, RTNLGRP_IPV6_IFADDR,
|
||||
RTNLGRP_IPV4_ROUTE, RTNLGRP_IPV6_ROUTE,
|
||||
NULL);
|
||||
RTNLGRP_LINK,
|
||||
RTNLGRP_IPV4_IFADDR, RTNLGRP_IPV6_IFADDR,
|
||||
RTNLGRP_IPV4_ROUTE, RTNLGRP_IPV6_ROUTE,
|
||||
0);
|
||||
g_assert (!nle);
|
||||
debug ("Netlink socket for events established: %d", nl_socket_get_local_port (priv->nlh_event));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue