X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=show.c;h=08abf6c184a00f516cd5d5a07b8c8f4d55145a12;hp=bece7e641b957ea94bd2bb4ad9d1a538780660ad;hb=44ac76145c74a503916ffc9a29701b3226d8c0c6;hpb=6b27bde46ccb02784a327b51b3e7beeb2f9c681a diff --git a/show.c b/show.c index bece7e6..08abf6c 100644 --- a/show.c +++ b/show.c @@ -21,9 +21,6 @@ #include #include -extern gint opt_loglevel; -extern gchar *opt_pds; - static gint sort_inputs(gconstpointer a, gconstpointer b) { const struct sr_input_format *ia = a, *ib = b; @@ -316,8 +313,12 @@ void show_dev_detail(void) case SR_TRIGGER_UNDER: c = 'u'; break; + default: + c = 0; + break; } - printf("%c ", c); + if (c) + printf("%c ", c); } printf("\n"); g_variant_unref(gvar_list);