From nobody Mon Jan 06 16:22:29 2025 X-Original-To: dev-commits-src-main@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 4YRfbT2JRPz5jpDr; Mon, 06 Jan 2025 16:22:29 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YRfbT1h3Rz41Jt; Mon, 6 Jan 2025 16:22:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736180549; 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=1mJ1R2E5M0knmmGkxuCG8f1vTJBd9j8P/fEXx/fMESs=; b=VGzk2zLUn8z4fpGpGjTegsZcmscN7SWq3Rnz7oGnkw04SJFdA3Vs6kbOKMYQ4rOQDnfFVN novaihpM2FEtt6kAOAlmgdjznx7BnRVlMt/wIYZyv23ED6Rf7ckxAIasfmugCtVrgIENEh rrhCY6c8PAtQgC4kKa1usQimeFtxZ68b77NVC+RVsfNSIxNGC1HdfZZl4b51PugV2Cbzmw xF6V9mg1Xed0wjXcRkK1Nmpe9jqocMBb3KZ16FEMVrfMzV53Gmg1ysltoyfJk1RmgUSdI6 y7+KgUT8Fqg3HcOFPHESOUxdup+sdENVCzU2dIN8edW/7ixkdsjmSfQm72eNsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736180549; 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=1mJ1R2E5M0knmmGkxuCG8f1vTJBd9j8P/fEXx/fMESs=; b=GYiYR8S/VZ69zYRZoo2zf5kMbM4P/IaYY/cFUR65fmMHvjvFKUgo/yjFk2Xpp16n/wxPC8 h8t9vINaToEyrAsIwYxrgvaD+PdKt9UhKBXYoSq5QR+e6q+TmL3HEM3kZe0EBcmaUb19Md gJLoZDMuTmpEwYNIXIVheXraGJr14L9W7J6UZEaNTanlQEZPuL74hudOsnf6589K6P7lrg 6nE5LrDbnT6D7/z+0xjqTN8LYedwXquGJcKYzWalDy/JbexUMwX5mBuOMnu+nqG7ktN6jn td7hp0jdXl0rb/2rz7z47ZD8z3wtQ2rfuaNfTwp7+BaYVZrDSeXN9gK3g1pcTg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736180549; a=rsa-sha256; cv=none; b=ZwtRjbvdnUY7OC1GG2phgIBewIq6K+qlBT4k2/9nwiASxHX6Jv4EgSeOqhZqivl70utNZA Vbb01/Ke0+k/3uQbi9WxvUMQyWeGMowg3gko1fUsSFvynjbRotzH4sUFyURhyE0XTL5/aH ytmWeejN3XHaOEao5D/xFy9Dyf44q9BejQ/Zjq1cEj/A1A6TjvmkQ/RUxPP8+rsh7un8UP St4bHSdnY/4RPOhvLcpInN2TjI5j45vItwSHIf97+WvJUWd+mAbmBWULr02t4PS1lmLTYz MPmrr19o4+Gx8AuqutxC7TMdmUsCpOmCcpjJUH1NuKL4B+SpAajMMA3amGQdEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YRfbT1Ft3zX26; Mon, 06 Jan 2025 16:22:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 506GMTm7018974; Mon, 6 Jan 2025 16:22:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 506GMTtJ018971; Mon, 6 Jan 2025 16:22:29 GMT (envelope-from git) Date: Mon, 6 Jan 2025 16:22:29 GMT Message-Id: <202501061622.506GMTtJ018971@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: b5c1f7d479de - main - xdr: use C99 initializers for xdr_ops List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b5c1f7d479de02f2c886b7453adbea312418ee7a Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=b5c1f7d479de02f2c886b7453adbea312418ee7a commit b5c1f7d479de02f2c886b7453adbea312418ee7a Author: Gleb Smirnoff AuthorDate: 2025-01-06 16:22:15 +0000 Commit: Gleb Smirnoff CommitDate: 2025-01-06 16:22:15 +0000 xdr: use C99 initializers for xdr_ops No functional change. --- sys/xdr/xdr_mbuf.c | 16 ++++++++-------- sys/xdr/xdr_mem.c | 36 ++++++++++++++++++------------------ 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/sys/xdr/xdr_mbuf.c b/sys/xdr/xdr_mbuf.c index 0ed807de903e..896e317f5526 100644 --- a/sys/xdr/xdr_mbuf.c +++ b/sys/xdr/xdr_mbuf.c @@ -46,14 +46,14 @@ static bool_t xdrmbuf_setpos(XDR *, u_int); static int32_t *xdrmbuf_inline(XDR *, u_int); static const struct xdr_ops xdrmbuf_ops = { - xdrmbuf_getlong, - xdrmbuf_putlong, - xdrmbuf_getbytes, - xdrmbuf_putbytes, - xdrmbuf_getpos, - xdrmbuf_setpos, - xdrmbuf_inline, - xdrmbuf_destroy + .x_getlong = xdrmbuf_getlong, + .x_putlong = xdrmbuf_putlong, + .x_getbytes = xdrmbuf_getbytes, + .x_putbytes = xdrmbuf_putbytes, + .x_getpostn = xdrmbuf_getpos, + .x_setpostn = xdrmbuf_setpos, + .x_inline = xdrmbuf_inline, + .x_destroy = xdrmbuf_destroy, }; /* diff --git a/sys/xdr/xdr_mem.c b/sys/xdr/xdr_mem.c index 1489aadf53a0..65a74836b7b3 100644 --- a/sys/xdr/xdr_mem.c +++ b/sys/xdr/xdr_mem.c @@ -63,27 +63,27 @@ static int32_t *xdrmem_inline_unaligned(XDR *, u_int); static bool_t xdrmem_control(XDR *xdrs, int request, void *info); static const struct xdr_ops xdrmem_ops_aligned = { - xdrmem_getlong_aligned, - xdrmem_putlong_aligned, - xdrmem_getbytes, - xdrmem_putbytes, - xdrmem_getpos, - xdrmem_setpos, - xdrmem_inline_aligned, - xdrmem_destroy, - xdrmem_control + .x_getlong = xdrmem_getlong_aligned, + .x_putlong = xdrmem_putlong_aligned, + .x_getbytes = xdrmem_getbytes, + .x_putbytes = xdrmem_putbytes, + .x_getpostn = xdrmem_getpos, + .x_setpostn = xdrmem_setpos, + .x_inline = xdrmem_inline_aligned, + .x_destroy = xdrmem_destroy, + .x_control = xdrmem_control, }; static const struct xdr_ops xdrmem_ops_unaligned = { - xdrmem_getlong_unaligned, - xdrmem_putlong_unaligned, - xdrmem_getbytes, - xdrmem_putbytes, - xdrmem_getpos, - xdrmem_setpos, - xdrmem_inline_unaligned, - xdrmem_destroy, - xdrmem_control + .x_getlong = xdrmem_getlong_unaligned, + .x_putlong = xdrmem_putlong_unaligned, + .x_getbytes = xdrmem_getbytes, + .x_putbytes = xdrmem_putbytes, + .x_getpostn = xdrmem_getpos, + .x_setpostn = xdrmem_setpos, + .x_inline = xdrmem_inline_unaligned, + .x_destroy = xdrmem_destroy, + .x_control = xdrmem_control }; /*