hostname list
[lttngtop.git] / src / lttngtop.c
index 5cbdc0da6e015b4037d6308d379724368ec91d7e..69a05e15854853fd84fe63bed9d253b519ca5488 100644 (file)
@@ -636,15 +636,7 @@ static int parse_options(int argc, char **argv)
                                toggle_filter = 1;
                                tmp_str = strtok(opt_hostname, ",");
                                while (tmp_str) {
-//                                     char *new_str = strdup(tmp_str);
-                                       struct host *host;
-
-                                       host = g_new0(struct host, 1);
-                                       host->hostname = strdup(tmp_str);
-                                       host->filter = 1;
-                                       g_hash_table_insert(global_host_list,
-                                                       (gpointer) host->hostname,
-                                                       (gpointer) host);
+                                       add_hostname_list(tmp_str, 1);
                                        tmp_str = strtok(NULL, ",");
                                }
                                break;
This page took 0.021986 seconds and 4 git commands to generate.