aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkremlin <ian@kremlin.cc>2014-06-26 10:17:03 +0800
committerkremlin <ian@kremlin.cc>2014-06-26 10:17:03 +0800
commit5e2aed57e68e6ac1b08667b529f5122dc3d13b78 (patch)
tree95f1285ac3a46280aaa601f91db2f9a0abcbd712
parent446ae274212d67709f0079bef602cac4e9e07a4a (diff)
downloadsystembsd-5e2aed57e68e6ac1b08667b529f5122dc3d13b78.tar
systembsd-5e2aed57e68e6ac1b08667b529f5122dc3d13b78.tar.gz
systembsd-5e2aed57e68e6ac1b08667b529f5122dc3d13b78.tar.bz2
systembsd-5e2aed57e68e6ac1b08667b529f5122dc3d13b78.tar.lz
systembsd-5e2aed57e68e6ac1b08667b529f5122dc3d13b78.tar.xz
systembsd-5e2aed57e68e6ac1b08667b529f5122dc3d13b78.tar.zst
systembsd-5e2aed57e68e6ac1b08667b529f5122dc3d13b78.zip
see previous commit, forgot 'git add'..
-rw-r--r--Makefile2
-rw-r--r--src/config.c7
-rw-r--r--src/main.c6
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;
}