From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f174.google.com (mail-we0-f174.google.com [74.125.82.174]) by dpdk.org (Postfix) with ESMTP id D7863B376 for ; Mon, 18 Aug 2014 11:23:09 +0200 (CEST) Received: by mail-we0-f174.google.com with SMTP id x48so4744557wes.19 for ; Mon, 18 Aug 2014 02:26:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=/S67NW7rmx2Nj2iTrgQ57ishT/lWvruaGRjvmoQiqqU=; b=Z0ocKZA51xejACxO6PGvI5qP3wkfu4/ILmOyW7Phmy/wJyKQvwC+9rSL0k09g1gYKC Zp3KCB/FnGKj1CpWdFC5OU9uQzQG1R33A/tUUCR+QXAp2ZCTbqyAh1nLlgzEigk776XQ ZJRw221g7OG/6YZTvBnE3tXJNprOXhH3x6hWwYWUksyl42b2lT0l/fdgTiySuHykVdWv gU0RZ68240V7YpRGtRdFTZsd5r9jrTQ4h/OjssTcLA5hGmrUGpuBmjtu5pgALcn1a4BI +CJ0zKo+mCTSxJAu0ml6dyIzEHSAguxwOBKb4FDK4+EnUOsg9dqCWhWGMBICd5/wHqPy q1iA== X-Gm-Message-State: ALoCoQmvufvUbHBz2gXiwwQHl2oz6DxpogIrVf5aE+qEJ2ZtCrGcsngW70ghURUzVBAnrtfLJjl0 X-Received: by 10.180.81.169 with SMTP id b9mr39589841wiy.10.1408353992252; Mon, 18 Aug 2014 02:26:32 -0700 (PDT) Received: from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id za9sm25087627wjc.29.2014.08.18.02.26.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Aug 2014 02:26:31 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Mon, 18 Aug 2014 11:26:12 +0200 Message-Id: <1408353973-16663-7-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1408353973-16663-1-git-send-email-david.marchand@6wind.com> References: <1408353973-16663-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH 6/7] app/test: no more builtin commands X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2014 09:23:10 -0000 The builtin commands list is now empty, we can remove it. Signed-off-by: David Marchand --- app/test/commands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test/commands.c b/app/test/commands.c index 0640ac9..b7c6ee0 100644 --- a/app/test/commands.c +++ b/app/test/commands.c @@ -324,9 +324,8 @@ cmdline_parse_ctx_t main_ctx[] = { int commands_init(void) { struct test_command *t; - char builtin_commands[] = ""; char *commands, *ptr; - int commands_len = strlen(builtin_commands) + 1; + int commands_len = 0; TAILQ_FOREACH(t, &commands_list, next) { commands_len += strlen(t->command) + 1; @@ -340,7 +339,8 @@ int commands_init(void) TAILQ_FOREACH(t, &commands_list, next) { ptr += sprintf(ptr, "%s#", t->command); } - ptr += sprintf(ptr, "%s", builtin_commands); + ptr--; + ptr[0] = '\0'; cmd_autotest_autotest.string_data.str = commands; return 0; -- 1.7.10.4