From nobody Mon Feb 9 09:22:27 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1619282804; cv=none; d=zohomail.com; s=zohoarc; b=QMkL7Q+Zvf3dPj8yM69e5wFO1RTKixkFQJ/tUTOl3QtQhQ/7vT0PQ52DA7jVD44rcP/xNVaUJpGEixfH8DRyqXoMlvtU3W2DVAatUp48Nk5T1t2wtJjybSKZwJ3j+QG51/LDtL6kiufP7KKMCzGigUXXDP1rq8Gj988p1n2NMQI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1619282804; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=AW8Ml+/YNE+c65+lgJayPesQmaT8Aad6d4PcEHSzYQw=; b=Xa4ekBGDvJ9iIKmCU99hPLKugDcw9rCE4fhSNoDmvgTm6iJzvYzJRO7mlzfTV8ZGwluIAeLjdHxrQ3aQ1JaCeLJvh1+Nhpc+7CXL6EEuBeoiNNLwWccfT3yVg5IJy6PUUYvFfB0+7zyAj5cHUdTMB2bwCsWpK6WuyEhumqVpJZU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1619282804899618.6229692506699; Sat, 24 Apr 2021 09:46:44 -0700 (PDT) Received: from localhost ([::1]:42724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laLQZ-0005Xp-OE for importer@patchew.org; Sat, 24 Apr 2021 12:46:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laKio-000617-2u for qemu-devel@nongnu.org; Sat, 24 Apr 2021 12:01:30 -0400 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]:42766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laKiO-0004Li-CA for qemu-devel@nongnu.org; Sat, 24 Apr 2021 12:01:29 -0400 Received: by mail-il1-x131.google.com with SMTP id a9so1188101ilh.9 for ; Sat, 24 Apr 2021 09:01:02 -0700 (PDT) Received: from dune.bsdimp.com (50-253-99-174-static.hfc.comcastbusiness.net. [50.253.99.174]) by smtp.gmail.com with ESMTPSA id h4sm4055901ili.52.2021.04.24.09.01.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Apr 2021 09:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AW8Ml+/YNE+c65+lgJayPesQmaT8Aad6d4PcEHSzYQw=; b=qymgdilrpWDdF3GlMGmvOz+KUUAZKhjcLItWxt4m4zHbSE/vRpvdx48BxUHZnV7uB+ cLJPvgSTrYhIi8xZ4+Ze2WeY4EdEi1kLgRTYAV7flAJ/r81d/xbwff7V0WnjJlyppIKx 49oXMhpZTVGz1Ws5biigUf2xwKB/JPzymvG39f2s9ezE8SRslv5ky2xSwG7+K77ySIKH a9YtwKvkcxIaCpKlQJzKHAn+3SJqyNR5zfYdYqh2zRmpf1jDnhflaJIsMkwZCYV9FElP nAJ72PU/rpEzUeFS1ZROLNWHJhpciIs/tF+IgYzL8I5ZXzd+BndtROKL/cjpPMcQkIVp 4XrQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=AW8Ml+/YNE+c65+lgJayPesQmaT8Aad6d4PcEHSzYQw=; b=fq6Ku516D8HmIpEMKcVIDfgabA5BJTqq1n2Vx+Uf4NFc6xiQQ2qMp276dR69NaXzi3 GRKij71hpecrKvWBqp93+jdCZ5+vEMpq9IR3yd9rGpxjthjB9zTsNPM1JO8yvApT708/ zPhd2dTxc0a4IdLmp9PC5wVwHEYCbI/vkCwy+20x1lOlpjhOGO1sEgqCrKAzddmyMoAE WeIlGh3eSUeo9+4fmvOPbq22ajPRFxHqU774Ewv5l141IXezArmQD7en4g7l48pbLNLu 5pXd7GO8gX8YaM6Tud52iz24qpUyX8/z7ryIkCUMJbXb0EM3pr6g5dLAtH2MxMt/V4pI 5rjA== X-Gm-Message-State: AOAM532oH3S2yqwidEJNTeXRP4JlKG9dFYD+OLMUk6kIbCLOwsx3F84A QSZVfewkk4MeiJFJiKf0bNs1aEQo4jDsQl2U X-Google-Smtp-Source: ABdhPJxpItEusyUsEoST9c3jVtymwUFhQi1cBwslOQsdKGq8HUMWulv9weAPDbAbdOlO2H5oCKQ6Vw== X-Received: by 2002:a92:d58a:: with SMTP id a10mr6980426iln.170.1619280061651; Sat, 24 Apr 2021 09:01:01 -0700 (PDT) From: imp@bsdimp.com To: qemu-devel@nongnu.org Subject: [PATCH v2 42/48] bsd-user: style tweak: spaces around operators and commas Date: Sat, 24 Apr 2021 10:00:10 -0600 Message-Id: <20210424160016.15200-43-imp@bsdimp.com> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20210424160016.15200-1-imp@bsdimp.com> References: <20210424160016.15200-1-imp@bsdimp.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::131; envelope-from=imp@bsdimp.com; helo=mail-il1-x131.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kevans@freebsd.org, arichardson@freebsd.org, Warner Losh Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @bsdimp-com.20150623.gappssmtp.com) Content-Type: text/plain; charset="utf-8" From: Warner Losh Signed-off-by: Warner Losh Reviewed-by: Richard Henderson --- bsd-user/syscall.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c index 3352735c68..5e033e8bf4 100644 --- a/bsd-user/syscall.c +++ b/bsd-user/syscall.c @@ -77,8 +77,8 @@ static abi_long do_obreak(abi_ulong new_brk) /* We need to allocate more memory after the brk... */ new_alloc_size =3D HOST_PAGE_ALIGN(new_brk - brk_page + 1); mapped_addr =3D get_errno(target_mmap(brk_page, new_alloc_size, - PROT_READ|PROT_WRITE, - MAP_ANON|MAP_FIXED|MAP_PRIVATE, -1= , 0)); + PROT_READ | PROT_WRITE, + MAP_ANON | MAP_FIXED | MAP_PRIVATE= , -1, 0)); =20 if (!is_error(mapped_addr)) target_brk =3D new_brk; @@ -158,7 +158,7 @@ static abi_long do_freebsd_sysarch(void *env, int op, a= bi_ulong parms) static int oidfmt(int *oid, int len, char *fmt, uint32_t *kind) { - int qoid[CTL_MAXNAME+2]; + int qoid[CTL_MAXNAME + 2]; uint8_t buf[BUFSIZ]; int i; size_t j; @@ -241,7 +241,7 @@ static abi_long do_freebsd_sysctl(abi_ulong namep, int3= 2_t namelen, abi_ulong ol return -TARGET_EFAULT; holdlen =3D oldlen; for (p =3D hnamep, q =3D snamep, i =3D 0; i < namelen; p++, i++) - *q++ =3D tswap32(*p); + *q++ =3D tswap32(*p); oidfmt(snamep, namelen, NULL, &kind); /* XXX swap hnewp */ ret =3D get_errno(sysctl(snamep, namelen, holdp, &holdlen, hnewp, newl= en)); @@ -271,7 +271,7 @@ static abi_long lock_iovec(int type, struct iovec *vec,= abi_ulong target_addr, target_vec =3D lock_user(VERIFY_READ, target_addr, count * sizeof(stru= ct target_iovec), 1); if (!target_vec) return -TARGET_EFAULT; - for (i =3D 0;i < count; i++) { + for (i =3D 0; i < count; i++) { base =3D tswapl(target_vec[i].iov_base); vec[i].iov_len =3D tswapl(target_vec[i].iov_len); if (vec[i].iov_len !=3D 0) { @@ -283,7 +283,7 @@ static abi_long lock_iovec(int type, struct iovec *vec,= abi_ulong target_addr, vec[i].iov_base =3D NULL; } } - unlock_user (target_vec, target_addr, 0); + unlock_user(target_vec, target_addr, 0); return 0; } =20 @@ -297,13 +297,13 @@ static abi_long unlock_iovec(struct iovec *vec, abi_u= long target_addr, target_vec =3D lock_user(VERIFY_READ, target_addr, count * sizeof(stru= ct target_iovec), 1); if (!target_vec) return -TARGET_EFAULT; - for (i =3D 0;i < count; i++) { + for (i =3D 0; i < count; i++) { if (target_vec[i].iov_base) { base =3D tswapl(target_vec[i].iov_base); unlock_user(vec[i].iov_base, base, copy ? vec[i].iov_len : 0); } } - unlock_user (target_vec, target_addr, 0); + unlock_user(target_vec, target_addr, 0); =20 return 0; } @@ -393,7 +393,7 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, abi= _long arg1, break; case TARGET_FREEBSD_NR_syscall: case TARGET_FREEBSD_NR___syscall: - ret =3D do_freebsd_syscall(cpu_env,arg1 & 0xffff,arg2,arg3,arg4,ar= g5,arg6,arg7,arg8,0); + ret =3D do_freebsd_syscall(cpu_env, arg1 & 0xffff, arg2, arg3, arg= 4, arg5, arg6, arg7, arg8, 0); break; default: ret =3D get_errno(syscall(num, arg1, arg2, arg3, arg4, arg5, arg6,= arg7, arg8)); @@ -472,7 +472,7 @@ abi_long do_netbsd_syscall(void *cpu_env, int num, abi_= long arg1, break; case TARGET_NETBSD_NR_syscall: case TARGET_NETBSD_NR___syscall: - ret =3D do_netbsd_syscall(cpu_env,arg1 & 0xffff,arg2,arg3,arg4,arg= 5,arg6,0); + ret =3D do_netbsd_syscall(cpu_env, arg1 & 0xffff, arg2, arg3, arg4= , arg5, arg6, 0); break; default: ret =3D syscall(num, arg1, arg2, arg3, arg4, arg5, arg6); @@ -551,7 +551,7 @@ abi_long do_openbsd_syscall(void *cpu_env, int num, abi= _long arg1, break; case TARGET_OPENBSD_NR_syscall: case TARGET_OPENBSD_NR___syscall: - ret =3D do_openbsd_syscall(cpu_env,arg1 & 0xffff,arg2,arg3,arg4,ar= g5,arg6,0); + ret =3D do_openbsd_syscall(cpu_env, arg1 & 0xffff, arg2, arg3, arg= 4, arg5, arg6, 0); break; default: ret =3D syscall(num, arg1, arg2, arg3, arg4, arg5, arg6); --=20 2.22.1