From patchwork Thu Mar 30 18:17:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arushi Singhal X-Patchwork-Id: 745378 X-Patchwork-Delegate: pablo@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3vvCXs3W0bz9s0g for ; Fri, 31 Mar 2017 05:17:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="eyZnbzvX"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933981AbdC3SRt (ORCPT ); Thu, 30 Mar 2017 14:17:49 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33474 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933378AbdC3SRs (ORCPT ); Thu, 30 Mar 2017 14:17:48 -0400 Received: by mail-pg0-f65.google.com with SMTP id 79so11778960pgf.0 for ; Thu, 30 Mar 2017 11:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=vx0E/acnxysCm7NkE0W3hYDqHQM7wDv1xikJ2Ww0gls=; b=eyZnbzvXPNylcO3dV38+4hg78wSZ1gc2F1VAKqOLdM4WXbuKiVDyIT1xCeRreAE8s0 SHfJpAsf+Ae/jtTajUjgiVzJ4AnR9PWVvhvSLqUioshxF5XpukFpuq5gHzjpYsgAeCrF yGHSwT0CEetIeRbGE2ow7lZuo9sHzvm7QSrsr2wViwFFey+Z9R98Nr5UipjFLd944rFQ Ya+sThcUDRgUk0nvr73q7MSy6iG2QsmleJGuGGB9RimP+dvCLmIN+Uw6W474uvRE61Ec BYecOijOuabSgF7HvtksahponB3kMe0vYB3ItX1Y6kj5hKX4bOX5eN4NfbH3qiX1ooWd bYsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=vx0E/acnxysCm7NkE0W3hYDqHQM7wDv1xikJ2Ww0gls=; b=BZ1sjH9xJHQEe6M0JgQfTHh+CgpMtJTfiV9fkZ3OexH2ARibAiQyKQFyXFHoR6y+I+ bv3q+t7k1sE3A3smTqxjf4zneOw5TLs+xwoxUX1DjRM8H3ZZe87IClHWuFNMJDRnPIY6 MJaGDJCAilrW3tcNiRHVhLNJEewr1pJ2nDWhdJiIJqZ/BDDvdWNPf9xLPvo3fgVR+gaO CvoqBpYM6YjxjMrF1QjUfO178ohU91PT8rHlWivPrm3gghqqzB/uHj5l1X8OkrWKf3d9 i2k99ylkJEgri+gipIsagJkKGt+yhVeMeM+rNhGQPVaareTS5S++508EH+g1JYn042uZ zRwg== X-Gm-Message-State: AFeK/H3SozosMCcrYkSbTA7Jg4ueExGee+1UVcIbULHbS7yjR7t/9QIK6O5zjpLguuIEdQ== X-Received: by 10.98.135.74 with SMTP id i71mr872126pfe.86.1490897866999; Thu, 30 Mar 2017 11:17:46 -0700 (PDT) Received: from arushi-HP-Pavilion-Notebook ([14.139.82.6]) by smtp.gmail.com with ESMTPSA id n85sm5834708pfi.101.2017.03.30.11.17.44 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Mar 2017 11:17:45 -0700 (PDT) Date: Thu, 30 Mar 2017 23:47:41 +0530 From: Arushi Singhal To: netfilter-devel@vger.kernel.org Cc: outreachy-kernel@googlegroups.com Subject: [PATCH] iptables: extensions: Remove spaces. Message-ID: <20170330181741.GA3838@arushi-HP-Pavilion-Notebook> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Solve the checkpatch issue: space prohibited before close parenthesis ')' space prohibited after open parenthesis '(' Signed-off-by: Arushi Singhal --- extensions/libip6t_ah.c | 4 ++-- extensions/libip6t_dst.c | 6 +++--- extensions/libip6t_hbh.c | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/libip6t_ah.c b/extensions/libip6t_ah.c index 38c71f2..fc3e524 100644 --- a/extensions/libip6t_ah.c +++ b/extensions/libip6t_ah.c @@ -118,13 +118,13 @@ static void ah_save(const void *ip, const struct xt_entry_match *match) ahinfo->spis[0]); } - if (ahinfo->hdrlen != 0 || (ahinfo->invflags & IP6T_AH_INV_LEN) ) { + if (ahinfo->hdrlen != 0 || (ahinfo->invflags & IP6T_AH_INV_LEN)) { printf("%s --ahlen %u", (ahinfo->invflags & IP6T_AH_INV_LEN) ? " !" : "", ahinfo->hdrlen); } - if (ahinfo->hdrres != 0 ) + if (ahinfo->hdrres != 0) printf(" --ahres"); } diff --git a/extensions/libip6t_dst.c b/extensions/libip6t_dst.c index 321e1f4..83358ab 100644 --- a/extensions/libip6t_dst.c +++ b/extensions/libip6t_dst.c @@ -36,16 +36,16 @@ parse_opts_num(const char *idstr, const char *typestr) id = strtoul(idstr, &ep, 0); - if ( idstr == ep ) { + if (idstr == ep) { xtables_error(PARAMETER_PROBLEM, "dst: no valid digits in %s `%s'", typestr, idstr); } - if ( id == ULONG_MAX && errno == ERANGE ) { + if (id == ULONG_MAX && errno == ERANGE) { xtables_error(PARAMETER_PROBLEM, "%s `%s' specified too big: would overflow", typestr, idstr); } - if ( *idstr != '\0' && *ep != '\0' ) { + if (*idstr != '\0' && *ep != '\0') { xtables_error(PARAMETER_PROBLEM, "dst: error parsing %s `%s'", typestr, idstr); } diff --git a/extensions/libip6t_hbh.c b/extensions/libip6t_hbh.c index 8e1b0ac..469fecf 100644 --- a/extensions/libip6t_hbh.c +++ b/extensions/libip6t_hbh.c @@ -38,16 +38,16 @@ parse_opts_num(const char *idstr, const char *typestr) id = strtoul(idstr,&ep,0) ; - if ( idstr == ep ) { + if (idstr == ep) { xtables_error(PARAMETER_PROBLEM, "hbh: no valid digits in %s `%s'", typestr, idstr); } - if ( id == ULONG_MAX && errno == ERANGE ) { + if (id == ULONG_MAX && errno == ERANGE) { xtables_error(PARAMETER_PROBLEM, "%s `%s' specified too big: would overflow", typestr, idstr); } - if ( *idstr != '\0' && *ep != '\0' ) { + if (*idstr != '\0' && *ep != '\0') { xtables_error(PARAMETER_PROBLEM, "hbh: error parsing %s `%s'", typestr, idstr); }