aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkremlin- <ian@kremlin.cc>2014-06-27 07:50:14 +0800
committerkremlin- <ian@kremlin.cc>2014-06-27 07:50:14 +0800
commit6981850a27c5d29b8e916e77d0f56a3a30489017 (patch)
tree529abc4f1ae42d2befc8ee7e00e20104b48086dd
parenta0e7ba5b6ee645c4587194aa1df318a5aeb1916c (diff)
downloadsystembsd-6981850a27c5d29b8e916e77d0f56a3a30489017.tar
systembsd-6981850a27c5d29b8e916e77d0f56a3a30489017.tar.gz
systembsd-6981850a27c5d29b8e916e77d0f56a3a30489017.tar.bz2
systembsd-6981850a27c5d29b8e916e77d0f56a3a30489017.tar.lz
systembsd-6981850a27c5d29b8e916e77d0f56a3a30489017.tar.xz
systembsd-6981850a27c5d29b8e916e77d0f56a3a30489017.tar.zst
systembsd-6981850a27c5d29b8e916e77d0f56a3a30489017.zip
replace C++ style comments
-rw-r--r--src/config.c4
-rw-r--r--src/interfaces/hostnamed/hostnamed.c8
-rw-r--r--src/main.c2
3 files changed, 6 insertions, 8 deletions
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();