X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Finterfaces%2Fhostnamed%2Fhostnamed.c;h=42137cde94e27b8418da12ab4fa3bfb85343c648;hb=929eb2a9b45b11b5e3d76f1d4ac744853b7ab2fe;hp=0559b8b740bc49fd01803b712c3dd54b35f4d452;hpb=1cd91c9ccc0301e155901f137decbb0e1fcd93ea;p=systembsd.git diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c index 0559b8b..42137cd 100644 --- a/src/interfaces/hostnamed/hostnamed.c +++ b/src/interfaces/hostnamed/hostnamed.c @@ -95,7 +95,7 @@ static void on_name_lost(GDBusConnection *conn, const gchar *name, gpointer user_data) { - g_print("lost name %s, exiting...\n", name); + g_print("lost name %s, exiting...", name); //TODO exit through g_main_loop properly... exit(0); } @@ -105,17 +105,7 @@ GError * hostnamed_init() { guint bus_descriptor; GError *err = NULL; - gchar **hnd_ispect_xml; - GDir *cur_dir; - gchar *dir; - cur_dir = g_dir_open("./../", 0, err); - - g_sprintf(dir, "%s\n", g_dir_read_name(cur_dir)); - - //g_file_get_contents("../../../../conf/hostnamed-ispect.xml", hnd_ispect_xml, NULL, err); - //spect_data = g_dbus_node_info_new_for_xml(hnd_ispect_xml, &err); - bus_descriptor = g_bus_own_name(G_BUS_TYPE_SYSTEM, (gchar *)"org.freedesktop.hostname1", G_BUS_NAME_OWNER_FLAGS_NONE,