From patchwork Wed Apr 13 15:27:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 913 Return-Path: Received: from nm15-vm0.bullet.mail.ukl.yahoo.com (nm15-vm0.bullet.mail.ukl.yahoo.com [217.146.183.252]) by open-mesh.org (Postfix) with SMTP id DD01B154006 for ; Wed, 13 Apr 2011 17:27:05 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@yahoo.de; dkim-adsp=none Received: from [217.146.183.208] by nm15.bullet.mail.ukl.yahoo.com with NNFMP; 13 Apr 2011 15:27:04 -0000 Received: from [77.238.184.53] by tm1.bullet.mail.ukl.yahoo.com with NNFMP; 13 Apr 2011 15:27:04 -0000 Received: from [127.0.0.1] by smtp122.mail.ukl.yahoo.com with NNFMP; 13 Apr 2011 15:27:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1302708424; bh=yZ0DCBcozyltea+X6pgu5/f7jEh8eZgZhYDkJ8baWm8=; h=X-Yahoo-Newman-Id:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Cc:Subject:Date:Message-Id:X-Mailer:MIME-Version:Content-Type:Content-Transfer-Encoding; b=asvcGTkTOOGmie8uhzrYJEdgw2sZqz1VjjXuZBTCFbJMwFRrA5Jqla4ly1PvCf/soRC3wm/nTjGFLHAQLfjz6W5W4e0TUY0tg1yDe5lV8M9ea/4fN9FS5ev+gefE9CmbGNhWegfm417h0+1Wm93KY/lMMVNPHDHuyKo8lIoFRQ8= X-Yahoo-Newman-Id: 808588.57060.bm@smtp122.mail.ukl.yahoo.com Received: from localhost (lindner_marek@90.61.149.248 with plain) by smtp122.mail.ukl.yahoo.com with SMTP; 13 Apr 2011 15:27:04 +0000 GMT X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- X-YMail-OSG: 9EBtCGMVM1n_UZpV7mfUkA36W1IUMDrDzqWqznYSKGNslP3 whZ8T14F.0kRBn0YmsZRGN1gqC.EFDlxfHH_yGcx.lcFtzNQSzAcZz8Scqws .1ixtmULgu_2aftA.Ixx3nGG1JJQn1p_lYqHaNjtr03IF_0_IrQUOmM_cd8u j7.v2PhJ1_egoqaRSaJaW2bxxbsulqrotQyaUqf0v54TF2zTO1rCvMwYUmVr EINOVQxAA8eKyAh0I4AFI4iXDQPutheUMTRacrjHV_FC9aAxefco6N4OxzT3 1h45dsH_HlPba7DP6Hmyym0akDF6bk0jMow_x07_PDRq5CXI16MdC3w-- X-Yahoo-Newman-Property: ymail-3 From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Date: Wed, 13 Apr 2011 17:27:00 +0200 Message-Id: <1302708420-8552-1-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.2.3 MIME-Version: 1.0 Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH] batctl: avoid error message when command was successful X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2011 15:27:06 -0000 Reported-by: Linus Lüssing Signed-off-by: Marek Lindner Acked-by: Sven Eckelmann --- sys.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys.c b/sys.c index 729f898..3511b40 100644 --- a/sys.c +++ b/sys.c @@ -420,10 +420,10 @@ int handle_gw_setting(char *mesh_iface, int argc, char **argv) case GW_MODE_SERVER: res = write_file(path_buff, SYS_GW_BW, argv[2], NULL); break; - default: - goto out; } + goto out; + opt_err: printf("Error - the supplied argument is invalid: %s\n", argv[1]); printf("The following values are allowed:\n");