From patchwork Tue Jun 6 14:43:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liam Girdwood X-Patchwork-Id: 9769003 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2CBA560364 for ; Tue, 6 Jun 2017 14:44:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19E7820373 for ; Tue, 6 Jun 2017 14:44:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0ECD3284A4; Tue, 6 Jun 2017 14:44:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85EC72847D for ; Tue, 6 Jun 2017 14:44:35 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id A8A6E266F02; Tue, 6 Jun 2017 16:43:52 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3C55A266EF9; Tue, 6 Jun 2017 16:43:51 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by alsa0.perex.cz (Postfix) with ESMTP id AA8E7266EE0 for ; Tue, 6 Jun 2017 16:43:38 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP; 06 Jun 2017 07:43:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.39,306,1493708400"; d="scan'208"; a="1178966243" Received: from tlandman-mobl.ger.corp.intel.com (HELO loki.ger.corp.intel.com) ([10.252.15.29]) by fmsmga002.fm.intel.com with ESMTP; 06 Jun 2017 07:43:32 -0700 From: Liam Girdwood To: Takashi Iwai Date: Tue, 6 Jun 2017 15:43:25 +0100 Message-Id: <1496760205-6075-1-git-send-email-liam.r.girdwood@linux.intel.com> X-Mailer: git-send-email 1.9.1 Cc: Liam Girdwood , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH] alsatplg: fix topology compiler long option parsing X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP verbose, compile and output options all have a parameter. Signed-off-by: Liam Girdwood --- topology/topology.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/topology/topology.c b/topology/topology.c index 33c3276..6d876ee 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;