X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flttngtop.c;fp=src%2Flttngtop.c;h=5b5fbeabfe8d38f5cbd4cfb6d39468e693667007;hb=7121c2890c0e4fb9eca589c0dbb2dc02bf115a79;hp=17998583e46f24678204368d1300eca92a4c27d5;hpb=3a8dcb1b8028fca2a581198c8b0e4a58c1a22897;p=lttngtop.git diff --git a/src/lttngtop.c b/src/lttngtop.c index 1799858..5b5fbea 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;