From 5e2aed57e68e6ac1b08667b529f5122dc3d13b78 Mon Sep 17 00:00:00 2001 From: kremlin Date: Wed, 25 Jun 2014 21:17:03 -0500 Subject: [PATCH] see previous commit, forgot 'git add'.. --- Makefile | 2 +- src/config.c | 7 +++++-- src/main.c | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 342c3bf..e7d247f 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CFLAGS=-Wall -Wextra -Werror DEBUGF=-O0 -v -g SRCDIR=src INTFDIR=$(SRCDIR)/interfaces -SANITY=-Wno-unused-variable -Wno-unused-parameter +SANITY=-Wno-unused-variable -Wno-unused-parameter -Wno-comment GLIBF=`pkg-config --cflags --libs glib-2.0 gobject-2.0 gio-2.0 gio-unix-2.0` diff --git a/src/config.c b/src/config.c index 2d76106..2f8a76b 100644 --- a/src/config.c +++ b/src/config.c @@ -34,6 +34,8 @@ static gchar **localed_ispect_xml, localed_dbus_xml; static gchar **timedated_ispect_xml, timedated_dbus_xml; static gchar **logind_ispect_xml, logind_dbus_xml; */ +static void set_xml_descriptors(); + static const gchar *CONFIG_KEYS[] = { "PrettyHostname", "IconName", @@ -148,9 +150,10 @@ gboolean init_xml() { return FALSE; } - //set_xml_descriptors(); + set_xml_descriptors(); } -} + return TRUE; /* kill me! */ +} /* kill me too!*/ //LEFTOFF diff --git a/src/main.c b/src/main.c index da8cdc6..a592502 100644 --- a/src/main.c +++ b/src/main.c @@ -36,13 +36,13 @@ gboolean systemd_utils_init() { g_printf("FAILED to install configs in %s!\n", tmp); return FALSE; } - /*if(!init_xml()) { - gchar **tmp; + if(!init_xml()) { + const gchar * const *tmp; tmp = g_get_system_data_dirs(); g_printf("FAILED to install xml configs in %s!\n", tmp[0]); return FALSE; - }*/ + } #endif return TRUE; } -- 2.41.0