From patchwork Wed Sep 4 15:22:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Shilong X-Patchwork-Id: 2853745 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 870DFC0AB5 for ; Wed, 4 Sep 2013 15:23:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1F031201ED for ; Wed, 4 Sep 2013 15:22:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7934C204CF for ; Wed, 4 Sep 2013 15:22:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762794Ab3IDPWr (ORCPT ); Wed, 4 Sep 2013 11:22:47 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:48777 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756525Ab3IDPWr (ORCPT ); Wed, 4 Sep 2013 11:22:47 -0400 Received: by mail-pa0-f47.google.com with SMTP id kl13so574301pab.34 for ; Wed, 04 Sep 2013 08:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZuE92s+MZOA68qxYTDpde2Bp2erAwk/W6A2als+stKI=; b=cUuOalYPtGnosaOdR+wIbJz0UflDL9oQr9sFFxRGJ1T0jO/oNRFkwSCqc0bEo2HqWz G1wp4B1TOjI8JmEYHC5bd5Zc6E36QVHsmt8acB//UNdRgMl3nNKURD41PUYS/58Re2AL PhEOVGVR9lP6mEWW5q10M3lM99SLlrBY6oFC4J1MbR44FbLjMtqt9jMUZQUp20h4fG4A UtGj8hZijEV9PUzTerV9cTYK3mH47mJLNQ+6Lx9VC/N0qAnJR7YmhC4rSZ9qbKFKA6a/ Ed3Mr2N6P3Yrpme9zC52ldpkFiWDREHNN/JyKCuAVZsg2m7tVxt2brYScKBKds5aRLC+ 8Gdg== X-Received: by 10.68.225.42 with SMTP id rh10mr3794638pbc.176.1378308166526; Wed, 04 Sep 2013 08:22:46 -0700 (PDT) Received: from localhost.localdomain.localdomain ([223.65.191.73]) by mx.google.com with ESMTPSA id uw6sm29467271pbc.8.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Sep 2013 08:22:45 -0700 (PDT) From: Wang Shilong To: linux-btrfs@vger.kernel.org Cc: dsterba@suse.cz, sandeen@redhat.com Subject: [PATCH 01/20] Btrfs-progs: return 1 rather than 129 in usage() Date: Wed, 4 Sep 2013 23:22:18 +0800 Message-Id: <1378308157-4621-2-git-send-email-wangshilong1991@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1378308157-4621-1-git-send-email-wangshilong1991@gmail.com> References: <1378308157-4621-1-git-send-email-wangshilong1991@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wang Shilong if usage or syntax error happens, we return 1. Signed-off-by: Wang Shilong --- help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/help.c b/help.c index d429a6b..09dc706 100644 --- a/help.c +++ b/help.c @@ -121,7 +121,7 @@ void usage_command(const struct cmd_struct *cmd, int full, int err) void usage(const char * const *usagestr) { usage_command_usagestr(usagestr, NULL, 1, 1); - exit(129); + exit(1); } static void usage_command_group_internal(const struct cmd_group *grp, int full,