From 616fdb35eacafea30948a056c64dee96870d7d5e Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 28 Jan 2014 14:23:31 +0100 Subject: [PATCH] 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 --- src/platform/nm-linux-platform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index e42b14e82a..f6510eca79 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -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));