if(!g_key_file_get_string(config, group, key, NULL))
return FALSE;
- //TODO safteycheck value
+ /* TODO safteycheck value */
g_key_file_set_string(config, group, key, value);
return TRUE;
}
void clean_config() {
- //TODO g_ptr_array all of this
+ /* TODO g_ptr_array all of this */
g_free(config);
g_free(data_dir);
g_close(config_descr, NULL);
hostnamed_mem_clean();
- //TODO exit through g_main_loop properly...
+ /* TODO exit through g_main_loop properly... */
}
/* safe call to try and start hostnamed */
NULL,
NULL);
- //TODO: malloc and return reference as if a main() closed
+ /* TODO: malloc and return reference as if a main() closed */
return err;
}
g_ptr_array_foreach(hostnamed_freeable, (GFunc) g_free, NULL);
}
-//TODO figure out DMI variables on obsd
+/* TODO figure out DMI variables on obsd */
/*static gchar *guess_icon_name() {
gchar *filebuf = NULL;
gchar *ret = NULL;
- //TODO vm check
-
#if defined(__i386__) || defined(__x86_64__)
Taken with a few minor changes from systemd's hostnamed.c,
if(!systemd_utils_init()) {
g_printf("failed to init, are you root?\n");
- return 1; //TODO errno properly. grep for all "return 1;"s, not TODO'ing each one
+ return 1; /* TODO errno properly. grep for all "return 1;"s, not TODO'ing each one */
}
hostnamed_init();