]> sigrok.org Git - sigrok-cli.git/blobdiff - show.c
options: Allow input/output file names only once.
[sigrok-cli.git] / show.c
diff --git a/show.c b/show.c
index bece7e641b957ea94bd2bb4ad9d1a538780660ad..08abf6c184a00f516cd5d5a07b8c8f4d55145a12 100644 (file)
--- a/show.c
+++ b/show.c
@@ -21,9 +21,6 @@
 #include <glib.h>
 #include <string.h>
 
-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);