X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon.c;h=95f021012ddcbd1ff7d619e4688f458ce0cb0f95;hb=b7c86f5c6cec299b8ff792741a3e5184d62c08c9;hp=15f9de0864fb8675859b4ad807fd50a826eb097a;hpb=f26276d31993a1e35bbe3b1bacddb4a15d701d5c;p=lttngtop.git diff --git a/src/common.c b/src/common.c index 15f9de0..95f0210 100644 --- a/src/common.c +++ b/src/common.c @@ -669,26 +669,26 @@ struct tm format_timestamp(uint64_t timestamp) int *lookup_tid_list(int tid) { - if (!tid_list) + if (!tid_filter_list) return NULL; - return g_hash_table_lookup(tid_list, (gpointer) &tid); + return g_hash_table_lookup(tid_filter_list, (gpointer) &tid); } char *lookup_hostname_list(const char *hostname) { - if (!hostname || !hostname_list) + if (!hostname || !hostname_filter_list) return NULL; - return g_hash_table_lookup(hostname_list, (gpointer) hostname); + return g_hash_table_lookup(hostname_filter_list, (gpointer) hostname); } void remove_hostname_list(const char *hostname) { - if (!hostname || !hostname_list) + if (!hostname || !hostname_filter_list) return; - g_hash_table_remove(hostname_list, (gpointer) hostname); + g_hash_table_remove(hostname_filter_list, (gpointer) hostname); } int *lookup_filter_tid_list(int tid)