aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkremlin <ian@kremlin.cc>2014-06-27 07:55:42 +0800
committerkremlin <ian@kremlin.cc>2014-06-27 07:55:42 +0800
commit9fa42f1a1d7d99895db93bdf811f2cb77accfc14 (patch)
tree91d11bfcb20f878273dcd20550a24ad1ad4e9c0a
parenta6f11205f4da65a5671707d396df40203f668e1c (diff)
downloadsystembsd-9fa42f1a1d7d99895db93bdf811f2cb77accfc14.tar
systembsd-9fa42f1a1d7d99895db93bdf811f2cb77accfc14.tar.gz
systembsd-9fa42f1a1d7d99895db93bdf811f2cb77accfc14.tar.bz2
systembsd-9fa42f1a1d7d99895db93bdf811f2cb77accfc14.tar.lz
systembsd-9fa42f1a1d7d99895db93bdf811f2cb77accfc14.tar.xz
systembsd-9fa42f1a1d7d99895db93bdf811f2cb77accfc14.tar.zst
systembsd-9fa42f1a1d7d99895db93bdf811f2cb77accfc14.zip
retab
-rw-r--r--src/config.c4
-rw-r--r--src/main.c30
2 files changed, 17 insertions, 17 deletions
diff --git a/src/config.c b/src/config.c
index 480bcf6..21396a5 100644
--- a/src/config.c
+++ b/src/config.c
@@ -62,7 +62,7 @@ gboolean config_init() {
config_path = "/etc/systemd_compat.conf";
config_lstat_ret = g_lstat(config_path, config_lstat);
- /* this should all be handled in the makefile
+ /* this should all be handled in the makefile
* does conf exist?
if(config_lstat_ret) {
@@ -100,7 +100,7 @@ gboolean config_init() {
if(g_access(config_path, W_OK)) {
- g_printf("%s\n", "no write permissions for /etc/! exiting..");
+ g_printf("%s\n", "no write permissions for /etc/! exiting..");
return FALSE;
} else if(g_key_file_load_from_file(config, config_path, G_KEY_FILE_KEEP_COMMENTS, NULL))
diff --git a/src/main.c b/src/main.c
index e8127f0..f8cb5ef 100644
--- a/src/main.c
+++ b/src/main.c
@@ -22,21 +22,21 @@
#include "interfaces/hostnamed/hostnamed.c"
gboolean systemd_utils_init() {
- if(!config_init()) {
- gchar *tmp;
- tmp = "/etc/systemd_compat.conf";
-
- g_printf("FAILED to open config %s!\n", tmp);
- return FALSE;
- }
- /*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;
- }*/
- return TRUE;
+ if(!config_init()) {
+ gchar *tmp;
+ tmp = "/etc/systemd_compat.conf";
+
+ g_printf("FAILED to open config %s!\n", tmp);
+ return FALSE;
+ }
+ /*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;
+ }*/
+ return TRUE;
}
int main() {