From patchwork Wed Feb 11 10:02:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Enrique X-Patchwork-Id: 438728 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 542B214018C for ; Wed, 11 Feb 2015 21:04:30 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 090CB28BC68; Wed, 11 Feb 2015 11:01:10 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 46D2F28A718 for ; Wed, 11 Feb 2015 11:00:52 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .fon. - helo: .mail-wi0-f170.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 11 Feb 2015 11:00:51 +0100 (CET) Received: by mail-wi0-f170.google.com with SMTP id hi2so2063118wib.1 for ; Wed, 11 Feb 2015 02:03:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eZTrMhGMDcp4uGqSMgKqgVi3F1L4Uy7Qfl9yjOhiC7k=; b=hLUWGIHLNPy0FUd/NpX4KZUpDbM7DcXleDaqcgbfvlObc6QXD2l/e3Zs6kJv0WDap1 fDF5NUU/ndrDPiBd7TtE93ly+d2KDQY6NcB409mWK//ZGBxJLmJYalvbVf/HebNtlStf kzMCeLrmlx0TH0299J+EPzuBgbW740hw0WV9NZ+hUErMLB1u1tkdAIKk30bZQADaiRex HBJibLkuJEP12QI8oDMQAs2353ZHO+E0LMI2prRlfv/K0P4TSz5bimF1s8eC/ERcWRu+ iLrjtoVLeBDarCSNlR4UjqhWhkhb+b4WVP+WBd5rFpFpUafEs9AEN0zCon9+MOSGTodg RBsw== X-Gm-Message-State: ALoCoQmdLCyLDRzi6RKemZRkZqmI9iI1TGC0R+rbQNIbmr1RdOc0/xlSnRBCrFO/Fa3s2dApgZsD X-Received: by 10.180.76.4 with SMTP id g4mr6648339wiw.43.1423649009106; Wed, 11 Feb 2015 02:03:29 -0800 (PST) Received: from dell-desktop.lan ([213.27.197.25]) by mx.google.com with ESMTPSA id r7sm554811wjw.23.2015.02.11.02.03.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Feb 2015 02:03:28 -0800 (PST) From: Alejandro Enrique To: Felix Fietkau Date: Wed, 11 Feb 2015 11:02:46 +0100 Message-Id: <1423648967-2579-2-git-send-email-alejandro.enrique@fon.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1423648967-2579-1-git-send-email-alejandro.enrique@fon.com> References: <54DB1861.9030908@openwrt.org> <1423648967-2579-1-git-send-email-alejandro.enrique@fon.com> Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH] fix missing -p command line argument X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Option -p was not being accepted as it was missing in getopt parameter list Signed-off-by: Alejandro Enrique --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 2e34954..a78076c 100644 --- a/main.c +++ b/main.c @@ -719,7 +719,7 @@ int main(int argc, char **argv) local_route_table = 0; uloop_init(); - while ((ch = getopt(argc, argv, "I:i:t:BDdT:G:R:L:")) != -1) { + while ((ch = getopt(argc, argv, "I:i:t:p:BDdT:G:R:L:")) != -1) { switch(ch) { case 'I': managed = true;