From nobody Sun Apr 09 21:35:48 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PvllT6vWsz44JQ0; Sun, 9 Apr 2023 21:35:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PvllT0Kydz4NHq; Sun, 9 Apr 2023 21:35:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mLl2ETRHKvIdnS2ZT8w3JDwvwEszOhCqoN/KuDWk8DY=; b=q+9VlYIcCXnYoebSVqxnCdsL6Bp48qimUC+iAYi7mslQ2yxgnBmodcZZfAHS8EYSd3woP9 RN53KrvfBnsWhO1J8hojQSn73VtkpD6gpHP28MTP3e0yKlqgCHWsc9AODe8cf2Ue+h/7+6 lAECRwabhPBwJ+KCxGWvk3c1UOEauZwOuB+SY4a7LGAUHMQ5KfTQT/mWOlSVpJ7M26IaU2 hTp37GjOe8uHMH7oejyvXEVU8osMpJAw2hONw61ySPUuyu+2o+wd5xCmVHmMvuIUecxsRQ fhYvsy3tcC2GyOjEaha/t+4+mPf2+B/IJWXolLscAZypVXilXXQo1Cxun+xciQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076149; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mLl2ETRHKvIdnS2ZT8w3JDwvwEszOhCqoN/KuDWk8DY=; b=tzJzlxjwGfAZgriuRuY13Q28e0Cw/naJGcjV/oMZM3lKOI/nojy8XkQDCMtjH9bqGbrQDh rtgT3BtFQSiQwsV0s5NXWzzqwA6QKBy8taoKVVVxRU9tLv2sqFYSKif0ytigCTeSvtPgn4 U8t0oS0iOioqT/uvrIsPXo7LE/QM2cGtJF5KbYS5ZMtSCnrffBe1PDAA3+zHv9hR4iZgMf jZJcEvDkFFvGrW3yphxzXYGmPm+21j9XFwB60cV4kFsEFHz4cX8NiHgplpA9ylV8JCRqyp MLhyvvIQcLMRNws/tYyNjRm2TA9MOW2qiSYDDbn/v1Dyu5enfsJsde1gxSzPWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681076149; a=rsa-sha256; cv=none; b=xUw+lUvMGEH/ab4wvdBMtN/Wp5JryG+RuhPSHO1iaJDaOaqymWRz7TQxceVk57rDnF8aiM kKR6RTk9xnpYSiYxJEL4+ELa4pcjlOV1wFURiVzgZI11uE3sMPauVAI8R3lEP2ZIGYjNoF dT1KYTg7rhFNFdVJdNqbgXXycPfUIyvkXKCiTBrQF0M1EQ1ZQE0dt4zsvHzBvKwD2q/NSv Q3JA155KoMqa95vRXWX/+egp1LxlGFazr++pAYlv5ZFmKwFearPp5LbKJvfvSSqyHn4Ux1 yHziqjD0JA+g2rCvi9kmw0OsTqtDJtgySdNieda32RAFRtcJfnNX09A0sKUUyw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PvllS3zmzzPhK; Sun, 9 Apr 2023 21:35:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 339LZmIa082125; Sun, 9 Apr 2023 21:35:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 339LZmds082124; Sun, 9 Apr 2023 21:35:48 GMT (envelope-from git) Date: Sun, 9 Apr 2023 21:35:48 GMT Message-Id: <202304092135.339LZmds082124@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: da9441d11aa6 - stable/13 - rpc: ansify List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: da9441d11aa6f322d56d3506396088afddcf6772 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=da9441d11aa6f322d56d3506396088afddcf6772 commit da9441d11aa6f322d56d3506396088afddcf6772 Author: Mateusz Guzik AuthorDate: 2023-02-13 05:39:10 +0000 Commit: Dimitry Andric CommitDate: 2023-04-09 15:48:06 +0000 rpc: ansify Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 71948c15ba9e6db536e7a26c65f2f22ee03f1630) --- sys/rpc/rpc_generic.c | 9 +++------ sys/rpc/svc_auth_unix.c | 6 ++---- sys/rpc/svc_dg.c | 5 +---- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/sys/rpc/rpc_generic.c b/sys/rpc/rpc_generic.c index 1a02085efe47..6d92367f4d60 100644 --- a/sys/rpc/rpc_generic.c +++ b/sys/rpc/rpc_generic.c @@ -146,8 +146,7 @@ __rpc_get_t_size(int af, int proto, int size) * Find the appropriate address buffer size */ u_int -__rpc_get_a_size(af) - int af; +__rpc_get_a_size(int af) { switch (af) { case AF_INET: @@ -567,8 +566,7 @@ __rpc_getconfip(const char *nettype) * unset, i.e. iterate over all visible entries in netconfig. */ void * -__rpc_setconf(nettype) - const char *nettype; +__rpc_setconf(const char *nettype) { struct handle *handle; @@ -688,8 +686,7 @@ __rpc_getconf(void *vhandle) } void -__rpc_endconf(vhandle) - void * vhandle; +__rpc_endconf(void *vhandle) { struct handle *handle; diff --git a/sys/rpc/svc_auth_unix.c b/sys/rpc/svc_auth_unix.c index de46bf438f0e..441f70e4a8af 100644 --- a/sys/rpc/svc_auth_unix.c +++ b/sys/rpc/svc_auth_unix.c @@ -135,10 +135,8 @@ done: * Looks up longhand in a cache. */ /*ARGSUSED*/ -enum auth_stat -_svcauth_short(rqst, msg) - struct svc_req *rqst; - struct rpc_msg *msg; +enum auth_stat +_svcauth_short(struct svc_req *rqst, struct rpc_msg *msg) { return (AUTH_REJECTEDCRED); } diff --git a/sys/rpc/svc_dg.c b/sys/rpc/svc_dg.c index db1928655618..36724ed07b98 100644 --- a/sys/rpc/svc_dg.c +++ b/sys/rpc/svc_dg.c @@ -288,10 +288,7 @@ svc_dg_destroy(SVCXPRT *xprt) static bool_t /*ARGSUSED*/ -svc_dg_control(xprt, rq, in) - SVCXPRT *xprt; - const u_int rq; - void *in; +svc_dg_control(SVCXPRT *xprt, const u_int rq, void *in) { return (FALSE);