[PATCH 2/2] core: Fix undefined reference to assert in session-monitor-{systemd, null}



assert.h is not included, that results in an undefined
reference to assert, just use g_assert instead.
---
 src/nm-session-monitor-null.c    |    2 +-
 src/nm-session-monitor-systemd.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nm-session-monitor-null.c b/src/nm-session-monitor-null.c
index 14d756f..beabcf2 100644
--- a/src/nm-session-monitor-null.c
+++ b/src/nm-session-monitor-null.c
@@ -85,7 +85,7 @@ nm_session_monitor_get (void)
 		return g_object_ref (singleton);
 
 	singleton = NM_SESSION_MONITOR (g_object_new (NM_TYPE_SESSION_MONITOR, NULL));
-	assert (singleton);
+	g_assert (singleton);
 	return singleton;
 }
 
diff --git a/src/nm-session-monitor-systemd.c b/src/nm-session-monitor-systemd.c
index 95e6c86..29ba7c2 100644
--- a/src/nm-session-monitor-systemd.c
+++ b/src/nm-session-monitor-systemd.c
@@ -196,7 +196,7 @@ nm_session_monitor_get (void)
 		return g_object_ref (singleton);
 
 	singleton = NM_SESSION_MONITOR (g_object_new (NM_TYPE_SESSION_MONITOR, NULL));
-	assert (singleton);
+	g_assert (singleton);
 	return singleton;
 }
 
-- 
1.7.3.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]