From patchwork Thu Nov 30 13:48:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Varsha Rao X-Patchwork-Id: 843014 X-Patchwork-Delegate: pablo@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netfilter-devel-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YoSVeEiK"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yndz66PyXz9ryv for ; Fri, 1 Dec 2017 00:48:34 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752188AbdK3Nsd (ORCPT ); Thu, 30 Nov 2017 08:48:33 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:38698 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750964AbdK3Nsd (ORCPT ); Thu, 30 Nov 2017 08:48:33 -0500 Received: by mail-pg0-f67.google.com with SMTP id f12so3013292pgo.5 for ; Thu, 30 Nov 2017 05:48:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TevB/zNjVI5u843O6Irj6AmMmuqUA+KJjdf0NiXqXwA=; b=YoSVeEiK9w3INLUECSoNolM/ryjKbPgrVeJzErrvOHiRHAqTkTWp5Qj7Ljytzl8uUz zCM6o+Ud0WOCaoj8LrTkJ86a894vdXseQ2edGpTXADNMLDl0Hokdly/7unuifStNOmyn Yc/jyoCP5cVj8SPsxK/Ga3w5LxxVI1X8ObR1f9/TlHvkp2b9xs+NRnZQwAqR0qdjGJoT fh9kVmnxe/N6bxSCHlfvN8qDB7dbSn/f2KyC9C8ho1r02cGRH0mms15W4ekizZ/VjFXC 7VY/oKFdXSwy0FdCV+B54stbK60w5N2axMhYkKd5T85ToGlDMFuSGk0CYGrNIr5uYKpc qPeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TevB/zNjVI5u843O6Irj6AmMmuqUA+KJjdf0NiXqXwA=; b=c7cpfabtv2HLXhGTGlhZWQrlSxyvH8XTazUjxO3Br/wNZUGMeefaLlO/OreRKxQLGh hmv6KEGqw4pCen+L1qvMyxVswLAFBomV1xWb3JfP2YF8LFqy4pkcjKI0daXudDZo3ghd kmpSYmXN/6UWj7q57MDuaDRg3epdNk7kjIXr+z7j49t7z1BQUd3d9Ff/D/7rnz9UbJw0 85BAQfaQ48KqxxXI611V1ZR6861b3Lt5BxGhXlOn2oQ1HAyzyro4W17/42vJNfxVrFi4 0nqYh+2qWo5j1Py8LcSp3pSLBtssIK76ysTXIoNyXHcLPUZ1/TODMdqkg2AnL3TXbPWW ktPg== X-Gm-Message-State: AJaThX6ExGwVXaY8RxjMkNpbMZEV34eWKsSkb1BZucfTdQ7mGZZay8+u gZyjkDHJ+Ft2zDjQrbUNwt8= X-Google-Smtp-Source: AGs4zMa8bjKGsXUvNIB7R1zdCJtN1IEcAIFJ1/w9BiCptmIYqe0WRBFNcPza0LfJ4lOnYZ3RJhqY7A== X-Received: by 10.101.65.200 with SMTP id b8mr2465492pgq.274.1512049712273; Thu, 30 Nov 2017 05:48:32 -0800 (PST) Received: from localhost.localdomain ([2405:204:5086:e375:60a5:7ee4:ed80:d1be]) by smtp.googlemail.com with ESMTPSA id y7sm8186495pfy.144.2017.11.30.05.48.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Nov 2017 05:48:31 -0800 (PST) From: Varsha Rao To: Pablo Neira Ayuso , netfilter-devel@vger.kernel.org Cc: Varsha Rao Subject: [PATCH] iptables: xtables-eb: Remove const qualifier from struct option Date: Thu, 30 Nov 2017 19:18:05 +0530 Message-Id: <20171130134806.21737-1-rvarsha016@gmail.com> X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org As opts is reassigned multiple times, it cannot be made constant. So remove const qualifier from structure option. This patch fixes the following warning. xtables-eb.c: In function ‘ebt_load_match_extensions’: xtables-eb.c:653:7: warning: assignment discards ‘const’ qualifier from pointer target type opts = ebt_original_options; Signed-off-by: Varsha Rao --- iptables/xtables-eb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index 60ec935c..c8b5d4f3 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -247,7 +247,7 @@ static int get_current_chain(const char *chain) /* Default command line options. Do not mess around with the already * assigned numbers unless you know what you are doing */ -static const struct option ebt_original_options[] = +static struct option ebt_original_options[] = { { "append" , required_argument, 0, 'A' }, { "insert" , required_argument, 0, 'I' },