From: Takashi Iwai Subject: Re: [PATCH] alsatplg: fix topology compiler long option parsing Date: Wed, 14 Jun 2017 13:58:01 +0200 Message-ID: References: <1497439533-28158-1-git-send-email-liam.r.girdwood@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 3AA7B2671E6 for ; Wed, 14 Jun 2017 13:58:01 +0200 (CEST) In-Reply-To: <1497439533-28158-1-git-send-email-liam.r.girdwood@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Liam Girdwood Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Wed, 14 Jun 2017 13:25:33 +0200, Liam Girdwood wrote: > > verbose, compile and output options all have a parameter. > > Signed-off-by: Liam Girdwood Applied, thanks. Takashi > --- > topology/topology.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > 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; > -- > 1.9.1 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >