From: Liam Girdwood Date: Wed, 14 Jun 2017 11:25:33 +0000 (+0100) Subject: alsatplg: fix topology compiler long option parsing X-Git-Tag: v1.1.5~8 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=1e96c5f50e760f56f7fc53285bfd249ba59a90b5;p=alsa-utils.git alsatplg: fix topology compiler long option parsing verbose, compile and output options all have a parameter. Signed-off-by: Liam Girdwood Signed-off-by: Takashi Iwai --- diff --git a/topology/topology.c b/topology/topology.c index ffe2f05..097c255 100644 --- a/topology/topology.c +++ b/topology/topology.c @@ -54,10 +54,10 @@ int main(int argc, char *argv[]) snd_tplg_t *snd_tplg; static const char short_options[] = "hc:v:o:"; static const struct option long_options[] = { - {"help", 0, 0, 'h'}, - {"verbose", 0, 0, 'v'}, - {"compile", 0, 0, 'c'}, - {"output", 0, 0, 'o'}, + {"help", 0, NULL, 'h'}, + {"verbose", 1, NULL, 'v'}, + {"compile", 1, NULL, 'c'}, + {"output", 1, NULL, 'o'}, {0, 0, 0, 0}, }; char *source_file = NULL, *output_file = NULL;