cut comments in main.c, prepare it to be removed
authorkremlin <ian@kremlin.cc>
Mon, 21 Jul 2014 23:42:33 +0000 (18:42 -0500)
committerkremlin <ian@kremlin.cc>
Mon, 21 Jul 2014 23:42:33 +0000 (18:42 -0500)
src/main.c

index 87f2198d85827aabf8cbf097e61563398a9f0380..1d8f78b5b62959fedd4ae029ef5161bdaee6c7d1 100644 (file)
 gboolean systemd_utils_init() {
 
        if(!config_init()) {
-        gchar *tmp;
-        tmp = "/etc/systemd_compat.conf"; 
 
-        g_printf("FAILED to open config %s! did you `make install`?\n", tmp);
+        g_printf("FAILED to open config /etc/systemd_compat.conf! did you `make install`?\n", tmp);
         return FALSE;
-    } 
+    }
+
     return TRUE;
 }
 
@@ -51,15 +50,6 @@ int main() {
        hostnamed_argv[0] = "/usr/local/libexec/systemd-hostnamed-handler";
        localed_argv[0] = "/usr/local/libexec/systemd-localed-handler";
 
-       /*hostnamed_init_ok = g_spawn_async(NULL, hostnamed_argv, NULL, G_SPAWN_DEFAULT, NULL, NULL, hostnamed_pid, NULL);
-       localed_init_ok = g_spawn_async(NULL, localed_argv, NULL, G_SPAWN_DEFAULT, NULL, NULL, localed_pid, NULL);
-
-       hostnamed_source = g_child_watch_source_new(*hostnamed_pid);
-       localed_source = g_child_watch_source_new(*localed_pid); */
-
-       /*g_source_attach(hostnamed_source, NULL);
-       g_source_attach(localed_source, NULL);*/
-
        g_main_loop_run(mloop);
        g_main_loop_unref(mloop);