about summary refs log tree commit diff
path: root/src/nm-dcb.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2015-07-14 19:39:12 +0200
committerMichael Biebl <biebl@debian.org>2015-07-14 19:39:12 +0200
commit34b1c46437df982495d08a8bbb8bd0b262d8af48 (patch)
tree1db29ec39d9f733922b3a33cabcc8e6486fa06aa /src/nm-dcb.c
parent50fc50153b0036516b853aa576dc435bd53ce736 (diff)
parent50a58f0fabd8a34c1b6108a107e08abe3c1ccd24 (diff)
Merge tag 'upstream/1.0.4'
Upstream version 1.0.4
Diffstat (limited to 'src/nm-dcb.c')
-rw-r--r--src/nm-dcb.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nm-dcb.c b/src/nm-dcb.c
index 6faec5c5..8bf3858a 100644
--- a/src/nm-dcb.c
+++ b/src/nm-dcb.c
@@ -27,7 +27,6 @@
 #include "nm-dcb.h"
 #include "nm-platform.h"
 #include "NetworkManagerUtils.h"
-#include "nm-posix-signals.h"
 #include "nm-logging.h"
 
 static const char *helper_names[] = { "dcbtool", "fcoeadm" };
@@ -305,7 +304,7 @@ run_helper (char **argv, guint which, gpointer user_data, GError **error)
 	nm_log_dbg (LOGD_DCB, "%s", cmdline);
 
 	success = g_spawn_sync ("/", argv, NULL, 0 /*G_SPAWN_DEFAULT*/,
-	                        nm_unblock_posix_signals, NULL,
+	                        NULL, NULL,
 	                        &outmsg, &errmsg, &exit_status, error);
 	/* Log any stderr output */
 	if (success && WIFEXITED (exit_status) && WEXITSTATUS (exit_status) && (errmsg || outmsg)) {
@@ -355,7 +354,7 @@ carrier_wait (const char *iface, guint secs, gboolean up)
 
 	g_return_if_fail (iface != NULL);
 
-	ifindex = nm_platform_link_get_ifindex (iface);
+	ifindex = nm_platform_link_get_ifindex (NM_PLATFORM_GET, iface);
 	if (ifindex > 0) {
 		/* To work around driver quirks and lldpad handling of carrier status,
 		 * we must wait a short period of time to see if the carrier goes
@@ -366,9 +365,9 @@ carrier_wait (const char *iface, guint secs, gboolean up)
 		nm_log_dbg (LOGD_DCB, "(%s): cleanup waiting for carrier %s",
 		            iface, up ? "up" : "down");
 		g_usleep (G_USEC_PER_SEC / 4);
-		while (nm_platform_link_is_connected (ifindex) != up && count-- > 0) {
+		while (nm_platform_link_is_connected (NM_PLATFORM_GET, ifindex) != up && count-- > 0) {
 			g_usleep (G_USEC_PER_SEC / 10);
-			nm_platform_link_refresh (ifindex);
+			nm_platform_link_refresh (NM_PLATFORM_GET, ifindex);
 		}
 	}
 }