X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fhex.c;h=bad607513f653f385352faf954f7cb8903951521;hb=55462b8ba9f48931de9b9a7bfbc182a1d113b3b5;hp=6c0e15d5c51fb6ec5f29daaff2a8dc04ae9021df;hpb=af7d656d37de4b8b7fc344fd557f9ae8d3238705;p=libsigrok.git diff --git a/src/output/hex.c b/src/output/hex.c index 6c0e15d5..bad60751 100644 --- a/src/output/hex.c +++ b/src/output/hex.c @@ -235,7 +235,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) @@ -252,9 +252,9 @@ SR_PRIV struct sr_output_module output_hex = { .id = "hex", .name = "Hexadecimal", .desc = "Hexadecimal digits", + .exts = (const char*[]){"txt", NULL}, .options = get_options, .init = init, .receive = receive, .cleanup = cleanup, }; -