X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fbits.c;h=180ea563d59137b1b5aedaebf0ff6ae1efc70b97;hb=391e23a97fe5b919f7f0716702bd1b151c601f66;hp=6b33f8d6534ec7dc23d6185c4d179b3d6e6c8a07;hpb=af7d656d37de4b8b7fc344fd557f9ae8d3238705;p=libsigrok.git diff --git a/src/output/bits.c b/src/output/bits.c index 6b33f8d6..180ea563 100644 --- a/src/output/bits.c +++ b/src/output/bits.c @@ -221,7 +221,7 @@ static int cleanup(struct sr_output *o) static struct sr_option options[] = { { "width", "Width", "Number of samples per line", NULL, NULL }, - { 0 } + ALL_ZERO }; static const struct sr_option *get_options(void) @@ -238,6 +238,7 @@ SR_PRIV struct sr_output_module output_bits = { .id = "bits", .name = "Bits", .desc = "0/1 digits", + .exts = (const char*[]){"txt", NULL}, .options = get_options, .init = init, .receive = receive,