X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=parsers.c;h=f0e2a7f8ebccb10073a44ecb8968e0a008336294;hb=f0f54487c6a146af523d6eb19fcce63422e3f0f1;hp=35545e02e7d59d3080fc36b98486d02491fd08a2;hpb=24bd9719166584e3b4e6e6423d6d6bcbc1a88251;p=sigrok-cli.git diff --git a/parsers.c b/parsers.c index 35545e0..f0e2a7f 100644 --- a/parsers.c +++ b/parsers.c @@ -67,10 +67,12 @@ GSList *parse_channelstring(struct sr_dev_inst *sdi, const char *channelstring) break; } if (strchr(tokens[i], '-')) { - /* A range of channels in the form a-b. This will only work + /* + * A range of channels in the form a-b. This will only work * if the channels are named as numbers -- so every channel * in the range must exist as a channel name string in the - * device. */ + * device. + */ range = g_strsplit(tokens[i], "-", 2); if (!range[0] || !range[1] || range[2]) { /* Need exactly two arguments. */ @@ -447,4 +449,3 @@ int parse_driver(char *arg, struct sr_dev_driver **driver, GSList **drvopts) return TRUE; } -