From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E2A7E423F2; Mon, 16 Jan 2023 18:28:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CBCE842D2D; Mon, 16 Jan 2023 18:27:42 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id F145D42D22 for ; Mon, 16 Jan 2023 18:27:39 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id p24so30947801plw.11 for ; Mon, 16 Jan 2023 09:27:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WKHnF7ViecVhdMZiC6Ld7FH4o4ekM9Fs2Z8Mu0UkwwI=; b=tCFXN5rH6XpxAgYHSV79IY9VdGJSCQ99I+sLko2emgT6pOwwrBvkRij3dRPCbdmwfJ +AqarBsUzoRJ2jqBQ3GFAkl03o5HBfaIDNSu1W3DWAnus2F9hQHcxPPYK0ZeZ5dLDgsQ 1UJ3t45QdjoWyM0Iq+8hkqsOW4jP4gm2nnj3l3lDiKNza55eQZDL3hhegmxLgKJElhUR pEtp7/GrUwjfx42p9VPGR12W2tC1Doy96qvW3wbWahJTrxHhGMgdmsn1KItnUE9okh+/ OWsPA+RMdcEBkzWpXzvXS/Z5sEjuxJ1ii4j2gEB3YYcspaVYnnpS3Mh3wBMHaYl3+5wP BW6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WKHnF7ViecVhdMZiC6Ld7FH4o4ekM9Fs2Z8Mu0UkwwI=; b=qr8kluU1U9bIdDUlPsDiO7Xc6UWTA7do7ZxKX11/0wIxURWf+XxUbH4buuHBZO+e9B 7DDcSAU1bBseX+EHe0ZsoIuKn/fx3sUftPnaw5KGANqEYrctzsqrTPYyfytqjAcCEpJS giWchF/fm+Mx6tL9cg9JJCJ+kvDRltZMTL8mlugT/qOONAkeRptBHoogD3yzStxjL4dz DbCk23uJHxhYl+/Tg4SONOvnpGI6nNk3BoE8r9bl052/fc4B5ohFdF8CHoq9dxlHAcpK djZBl6IVIx85FrN+usAVyzW5CTUPBiOwoiOiANfR+HaP0XhuW/8bF+1oR+TdZGactMm3 H85w== X-Gm-Message-State: AFqh2kqSq/HpLGVpfv0Np9E2leRk+1XeFPhoEGKOy2LmLS9jeyvTMfrc RAbmrhIL4Y1xlFkKkkOwxEk5L+gO3yYP/J5FvyI= X-Google-Smtp-Source: AMrXdXtbpGA3WRk/fmoxc515Xm9qfCY055xiBh0g3AQ+ACdaBrmEEb1wxFXZf/Qxdhx/2KwWuFvAng== X-Received: by 2002:a17:902:e205:b0:189:c8d9:ed30 with SMTP id u5-20020a170902e20500b00189c8d9ed30mr402864plb.24.1673890058968; Mon, 16 Jan 2023 09:27:38 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id j3-20020a170902c3c300b001945b984341sm3992635plj.100.2023.01.16.09.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 09:27:38 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Olivier Matz Subject: [PATCH 6/7] cmdline: fix whitespace Date: Mon, 16 Jan 2023 09:27:30 -0800 Message-Id: <20230116172732.84976-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230116172732.84976-1-stephen@networkplumber.org> References: <20230116172732.84976-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The style standard is to use blank after keywords. I.e "if (" not "if(" Signed-off-by: Stephen Hemminger --- lib/cmdline/cmdline_rdline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cmdline/cmdline_rdline.c b/lib/cmdline/cmdline_rdline.c index 5cf723a0126a..28fc54cdfebf 100644 --- a/lib/cmdline/cmdline_rdline.c +++ b/lib/cmdline/cmdline_rdline.c @@ -301,7 +301,7 @@ rdline_char_in(struct rdline *rdl, char c) /* delete 1 char from the left */ case CMDLINE_KEY_BKSPACE: case CMDLINE_KEY_BKSPACE2: - if(!cirbuf_del_tail_safe(&rdl->left)) { + if (!cirbuf_del_tail_safe(&rdl->left)) { rdline_puts(rdl, vt100_bs); display_right_buffer(rdl, 1); } @@ -354,7 +354,7 @@ rdline_char_in(struct rdline *rdl, char c) /* paste contents of kill buffer to the left side of caret */ case CMDLINE_KEY_CTRL_Y: i=0; - while(CIRBUF_GET_LEN(&rdl->right) + CIRBUF_GET_LEN(&rdl->left) < + while (CIRBUF_GET_LEN(&rdl->right) + CIRBUF_GET_LEN(&rdl->left) < RDLINE_BUF_SIZE && i < rdl->kill_size) { cirbuf_add_tail(&rdl->left, rdl->kill_buf[i]); @@ -404,7 +404,7 @@ rdline_char_in(struct rdline *rdl, char c) /* add chars */ if (ret == RDLINE_RES_COMPLETE) { i=0; - while(CIRBUF_GET_LEN(&rdl->right) + CIRBUF_GET_LEN(&rdl->left) < + while (CIRBUF_GET_LEN(&rdl->right) + CIRBUF_GET_LEN(&rdl->left) < RDLINE_BUF_SIZE && i < tmp_size) { cirbuf_add_tail(&rdl->left, tmp_buf[i]); -- 2.39.0