[PATCH] test-keyfile: drop dbus stuff.
- From: Mikhail Efremov <mikhefr gmail com>
- To: <networkmanager-list gnome org>
- Subject: [PATCH] test-keyfile: drop dbus stuff.
- Date: Fri, 12 Nov 2010 17:20:32 +0300
Hello!
Just drop drop a dbus stuff. It seems is unused anywhere. And in any
case it cause segfault if dbus_g_bus_get() returns NULL.
--
WBR, Mikhail Efremov
>From feb40da3359f8e88d509f49d65a835ee7291066d Mon Sep 17 00:00:00 2001
From: Mikhail Efremov <sem altlinux org>
Date: Mon, 8 Nov 2010 17:16:18 +0300
Subject: [PATCH] test-keyfile: drop dbus stuff.
---
.../plugins/keyfile/tests/test-keyfile.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/system-settings/plugins/keyfile/tests/test-keyfile.c b/system-settings/plugins/keyfile/tests/test-keyfile.c
index 7bf63ef..05131c8 100644
--- a/system-settings/plugins/keyfile/tests/test-keyfile.c
+++ b/system-settings/plugins/keyfile/tests/test-keyfile.c
@@ -27,8 +27,6 @@
#include <arpa/inet.h>
#include <sys/socket.h>
-#include <dbus/dbus-glib.h>
-
#include <nm-utils.h>
#include <nm-setting-connection.h>
#include <nm-setting-wired.h>
@@ -1989,11 +1987,9 @@ test_write_gsm_connection (void)
int main (int argc, char **argv)
{
GError *error = NULL;
- DBusGConnection *bus;
char *base;
g_type_init ();
- bus = dbus_g_bus_get (DBUS_BUS_SESSION, NULL);
if (!nm_utils_init (&error))
FAIL ("nm-utils-init", "failed to initialize libnm-util: %s", error->message);
@@ -2022,7 +2018,6 @@ int main (int argc, char **argv)
base = g_path_get_basename (argv[0]);
fprintf (stdout, "%s: SUCCESS\n", base);
g_free (base);
- dbus_g_connection_unref (bus);
return 0;
}
--
1.7.3.2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]