X-Git-Url: http://git.liburcu.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Flttngtop.c;h=69a05e15854853fd84fe63bed9d253b519ca5488;hp=5cbdc0da6e015b4037d6308d379724368ec91d7e;hb=467097ac13d432cc25af5c93fec285ac23d25304;hpb=114cae592abf524003c3575623dbdb2191a827cc diff --git a/src/lttngtop.c b/src/lttngtop.c index 5cbdc0d..69a05e1 100644 --- a/src/lttngtop.c +++ b/src/lttngtop.c @@ -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;