From patchwork Wed May 12 17:17:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Warner Losh X-Patchwork-Id: 1477738 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bsdimp-com.20150623.gappssmtp.com header.i=@bsdimp-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=jU3N8HXL; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FgM905mTLz9sRN for ; Thu, 13 May 2021 03:24:20 +1000 (AEST) Received: from localhost ([::1]:39268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgsao-0000Fp-RE for incoming@patchwork.ozlabs.org; Wed, 12 May 2021 13:24:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgsUV-00078Z-LU for qemu-devel@nongnu.org; Wed, 12 May 2021 13:17:50 -0400 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]:33612) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgsUK-0008Kd-7J for qemu-devel@nongnu.org; Wed, 12 May 2021 13:17:46 -0400 Received: by mail-il1-x12f.google.com with SMTP id z1so12940234ils.0 for ; Wed, 12 May 2021 10:17:35 -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=WmsTH6YeQ6QLzMbKIKIH647DYkY/XXINReCjYAIywDM=; b=jU3N8HXLumCmcQJcucuEP6FEeIvJRgqxz6Ls1NAEPChtmnegIxgkEdZM4d714oUGiG Ee0h5ni5rInlum90ZNBhJZcYww9KW3ikxpwzF6cpDRPMEO/t4GeaHGr5x/erU0BgV50z 8BjIVQaxTnx0azPiZXkkCWNGH2r2uDmrEWfDVWPFo3iqWmePsuqkq7wkYmpDltfXYtXY FzfonS+ig7GNN0tm2VZouLGdXBfcbYnsHDfq1+KvBCtyVyLox2AoLULhYDCESnTSzuNw Wv065Wp+dw4wrYNiWZEyd9d0ROfgNKnM86u5txw6Pg3Q8Ls6P1cM2oOzAqwJ+HuGryGB GkBQ== 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=WmsTH6YeQ6QLzMbKIKIH647DYkY/XXINReCjYAIywDM=; b=Dh9oSiPGYSBiFvIhiiGHAiLYmWKpGvI183nHbiuT6QTsrudEAQjB1zsWmCuvgP/NqA 6rPCfIPYTM3eJeObU9pdcoOn4qx7hZTjbVaP+8X+i+S0oWraJ4jXCOIyxM54Nv1NkuKo 5iA2E5xagBimd0SHnXAMu4hACQJn88jQ3bvVgCVD53930oZlpuwTtSlshWLQDN7ef3gs 4TovTuF8jyO1eau76/3aNuYfK43W6h8u0ahtJKBoJmLWf9i8GID7SUORTHwP7IMwhH0B 3wSflT65WDx1+QcQ/2V+nRjOupdShF7ppQq1vJudB5ZJWbMqN58V0MgTbQ3A2JtJlLpn OJmQ== X-Gm-Message-State: AOAM531EXXfCPS7DzLQGPMcvLsqNzUS2TcdGFS+OkB9z+LZc6EYST+we Eg//62dmk1hgXHMjzF+Mj8Asah1nf++REA== X-Google-Smtp-Source: ABdhPJwWcJwMg/AgiQHUyGybyBsSBVX/TLf3zzBVlriVeQlzYuoju9phDJG2Xbu+oGQ/TWHCytTFvA== X-Received: by 2002:a05:6e02:1a4b:: with SMTP id u11mr31905409ilv.258.1620839854501; Wed, 12 May 2021 10:17:34 -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 d2sm192064ile.18.2021.05.12.10.17.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 May 2021 10:17:34 -0700 (PDT) From: Warner Losh To: qemu-devel@nongnu.org Subject: [PULL 07/20] bsd-user: style tweak: remove spacing after '*' and add after } Date: Wed, 12 May 2021 11:17:07 -0600 Message-Id: <20210512171720.46744-8-imp@bsdimp.com> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20210512171720.46744-1-imp@bsdimp.com> References: <20210512171720.46744-1-imp@bsdimp.com> MIME-Version: 1.0 Received-SPF: none client-ip=2607:f8b0:4864:20::12f; envelope-from=imp@bsdimp.com; helo=mail-il1-x12f.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=unavailable 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, Richard Henderson , Warner Losh Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/qemu.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 5a82722281..de20e8329a 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -124,19 +124,19 @@ struct linux_binprm { int argc, envc; char **argv; char **envp; - char * filename; /* Name of binary */ + char *filename; /* Name of binary */ }; void do_init_thread(struct target_pt_regs *regs, struct image_info *infop); abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp, abi_ulong stringp, int push_ptr); -int loader_exec(const char * filename, char ** argv, char ** envp, - struct target_pt_regs * regs, struct image_info *infop); +int loader_exec(const char *filename, char **argv, char **envp, + struct target_pt_regs *regs, struct image_info *infop); -int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, - struct image_info * info); -int load_flt_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, - struct image_info * info); +int load_elf_binary(struct linux_binprm *bprm, struct target_pt_regs *regs, + struct image_info *info); +int load_flt_binary(struct linux_binprm *bprm, struct target_pt_regs *regs, + struct image_info *info); abi_long memcpy_to_target(abi_ulong dest, const void *src, unsigned long len); @@ -246,7 +246,7 @@ static inline bool access_ok(int type, abi_ulong addr, abi_ulong size) break;\ default:\ abort();\ - }\ + } \ 0;\ }) @@ -270,7 +270,7 @@ static inline bool access_ok(int type, abi_ulong addr, abi_ulong size) /* avoid warning */\ x = 0;\ abort();\ - }\ + } \ 0;\ })