From: kremlin Date: Thu, 26 Jun 2014 23:50:14 +0000 (-0500) Subject: replace C++ style comments X-Git-Tag: gsoc-final~111 X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?a=commitdiff_plain;h=a6f11205f4da65a5671707d396df40203f668e1c;p=systembsd.git replace C++ style comments --- diff --git a/src/config.c b/src/config.c index 7469e67..480bcf6 100644 --- a/src/config.c +++ b/src/config.c @@ -41,7 +41,7 @@ gboolean set_option(gchar *key, gchar *value, gchar *group) { 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; } @@ -165,7 +165,7 @@ gboolean init_xml() { 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); diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c index 522d750..9f152df 100644 --- a/src/interfaces/hostnamed/hostnamed.c +++ b/src/interfaces/hostnamed/hostnamed.c @@ -51,7 +51,7 @@ static void on_name_lost(GDBusConnection *conn, hostnamed_mem_clean(); - //TODO exit through g_main_loop properly... + /* TODO exit through g_main_loop properly... */ } /* safe call to try and start hostnamed */ @@ -81,7 +81,7 @@ GError *hostnamed_init() { NULL, NULL); - //TODO: malloc and return reference as if a main() closed + /* TODO: malloc and return reference as if a main() closed */ return err; } @@ -91,14 +91,12 @@ void hostnamed_mem_clean() { 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, diff --git a/src/main.c b/src/main.c index 3cf0ee0..e8127f0 100644 --- a/src/main.c +++ b/src/main.c @@ -45,7 +45,7 @@ int main() { 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();