From nobody Tue Oct 20 13:29:01 2026 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 4j8CtW33xCz6x1Jm for ; Tue, 20 Oct 2026 13:29:07 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4j8CtV6GnTz3GcT for ; Tue, 20 Oct 2026 13:29:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792502946; 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=/qk2DvgdXCwRMhPdEZxJ6TCOE7IGDY0mrINQLY1n1Yk=; b=qo4KJatxd3aqt3vgaHeHgMMENgDFH6GRyBrlG95zvBSRIbAUhVP0G6xGfr+ixwSg6rYlPt 2SdmnshYz/vcZ+OWTz67HMfRtGhoh1vzjsP8b9lAz7LtLU7S9K1yl3tnIcRSZGOKcJyjf3 kba9JV9eQvg8tufTwEJSZQtNtmMgiv07g/1RugZCm1phyXzEKRlW9CCKBK0YOUzpro/51y /NHdhLV15RZ9HiSSyOzCo8GQfwfnwUH7gT+s/Ryp9OEk5dDnNRHk/vFJb8POhhAj0ShTTU v+scXwiQQDriYwRDNtUTLrjYHWeD7gSycLLAkyOWGXLyq3BSDdUfzybs8lMuMw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1792502946; b=Nq4tN7d2wkIe7lkGS1ajQNGTB2VuNc7/aj+vcEj2qDbXMsjJPBwjz6NzGA8wvepvKaDb4M 2Ch4tIzihuKWvavFblZOL8Kzcz1ewywonI/+gm5xw69GPOxntXaPITPcpgxhZ0QGEZ7vdv jna+YD2lHUNkzrc63iEgAzHXMwfGYgpTKaLHi74Br+gq7fGSPPm0HB8oH9SpB+sRNFig5y hGCdzMZxcx6c/JW0B1DfMYNN1ZNucB+9yKVqRz07wK6rDw7yY8PfM2rvWzbPGLG2oXFqII kHwlWlmoxUVvq04pGoEKC5WZTfN22fs6f9fxKO8OiV7tPYgBLwg6iovsCb/7jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792502946; 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=/qk2DvgdXCwRMhPdEZxJ6TCOE7IGDY0mrINQLY1n1Yk=; b=wL8Z0unuMwIjj2ilGdsLf6LNrVq6Ktx9boJbFwxNjkFB7MbQnEAy24geERlpGlkRCzieiK KmI2R0GhJexAQycpemnxYSKJvqKdJ5qGCoLaP3FdQNlAeTbLaN/v01ycb+iSLp59ZOoVD8 3wx64LZU67od515LqwVXXPyQb06tMtS4rZcjDqb05R1n/tl7AaQVkf+Q2mb+mxJS7f/f0r loqhuJ48HEgDslOIPbNBH+ZnE9v/FmfU5sp6qiww5uBONO4UEBmNFC8RTrWByhcC23tOZD 6WGIJzM+ZavdwodkZ9ZDEbsnSsxWPHxgcvVIulVj5KA+fhZ/2FIsm7R6eel+Vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4j8CtV5wm5z18XT for ; Tue, 20 Oct 2026 13:29:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3c133 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 20 Oct 2026 13:29:01 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav Subject: git: 4f19e4aca4f4 - main - auditdistd: Use void pointers for opaque data List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4f19e4aca4f4b7a3058be5d3bfc5aed66668b00f Auto-Submitted: auto-generated Date: Tue, 20 Oct 2026 13:29:01 +0000 Message-Id: <6ad76c9d.3c133.47fc6629@gitrepo.freebsd.org> The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=4f19e4aca4f4b7a3058be5d3bfc5aed66668b00f commit 4f19e4aca4f4b7a3058be5d3bfc5aed66668b00f Author: Dag-Erling Smørgrav AuthorDate: 2026-10-20 13:28:37 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2026-10-20 13:28:37 +0000 auditdistd: Use void pointers for opaque data Use void, not char, for pointers to opaque data in our send and receive functions. Sponsored by: Klara, Inc. Sponsored by: Qualys, Inc. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D60728 --- contrib/openbsm/bin/auditdistd/proto_common.c | 4 ++-- contrib/openbsm/bin/auditdistd/proto_impl.h | 8 ++++---- contrib/openbsm/bin/auditdistd/proto_socketpair.c | 4 ++-- contrib/openbsm/bin/auditdistd/proto_tcp.c | 4 ++-- contrib/openbsm/bin/auditdistd/proto_tls.c | 4 ++-- contrib/openbsm/bin/auditdistd/proto_uds.c | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/contrib/openbsm/bin/auditdistd/proto_common.c b/contrib/openbsm/bin/auditdistd/proto_common.c index acd2294e2d93..2966f6638f58 100644 --- a/contrib/openbsm/bin/auditdistd/proto_common.c +++ b/contrib/openbsm/bin/auditdistd/proto_common.c @@ -89,7 +89,7 @@ proto_descriptor_send(int sock, int fd) } int -proto_common_send(int sock, const unsigned char *data, size_t size, int fd) +proto_common_send(int sock, const void *data, size_t size, int fd) { ssize_t done; size_t sendsize; @@ -190,7 +190,7 @@ proto_descriptor_recv(int sock, int *fdp) } int -proto_common_recv(int sock, unsigned char *data, size_t size, int *fdp) +proto_common_recv(int sock, void *data, size_t size, int *fdp) { ssize_t done; diff --git a/contrib/openbsm/bin/auditdistd/proto_impl.h b/contrib/openbsm/bin/auditdistd/proto_impl.h index 81ffc2668864..7274348c06c9 100644 --- a/contrib/openbsm/bin/auditdistd/proto_impl.h +++ b/contrib/openbsm/bin/auditdistd/proto_impl.h @@ -43,8 +43,8 @@ typedef int prt_connect_wait_t(void *, int); typedef int prt_server_t(const char *, void **); typedef int prt_accept_t(void *, void **); typedef int prt_wrap_t(int, bool, void **); -typedef int prt_send_t(void *, const unsigned char *, size_t, int); -typedef int prt_recv_t(void *, unsigned char *, size_t, int *); +typedef int prt_send_t(void *, const void *, size_t, int); +typedef int prt_recv_t(void *, void *, size_t, int *); typedef int prt_descriptor_t(const void *); typedef bool prt_address_match_t(const void *, const char *); typedef void prt_local_address_t(const void *, char *, size_t); @@ -75,7 +75,7 @@ void proto_register(struct proto *proto, bool isdefault); int proto_wrap(const char *protoname, bool client, int fd, struct proto_conn **newconnp); -int proto_common_send(int sock, const unsigned char *data, size_t size, int fd); -int proto_common_recv(int sock, unsigned char *data, size_t size, int *fdp); +int proto_common_send(int sock, const void *data, size_t size, int fd); +int proto_common_recv(int sock, void *data, size_t size, int *fdp); #endif /* !_PROTO_IMPL_H_ */ diff --git a/contrib/openbsm/bin/auditdistd/proto_socketpair.c b/contrib/openbsm/bin/auditdistd/proto_socketpair.c index fb05c1cd1c41..8b27dfefad8e 100644 --- a/contrib/openbsm/bin/auditdistd/proto_socketpair.c +++ b/contrib/openbsm/bin/auditdistd/proto_socketpair.c @@ -109,7 +109,7 @@ sp_wrap(int fd, bool client, void **ctxp) } static int -sp_send(void *ctx, const unsigned char *data, size_t size, int fd) +sp_send(void *ctx, const void *data, size_t size, int fd) { struct sp_ctx *spctx = ctx; int sock; @@ -148,7 +148,7 @@ sp_send(void *ctx, const unsigned char *data, size_t size, int fd) } static int -sp_recv(void *ctx, unsigned char *data, size_t size, int *fdp) +sp_recv(void *ctx, void *data, size_t size, int *fdp) { struct sp_ctx *spctx = ctx; int sock; diff --git a/contrib/openbsm/bin/auditdistd/proto_tcp.c b/contrib/openbsm/bin/auditdistd/proto_tcp.c index 465221dfe5cc..80d64b23cd1d 100644 --- a/contrib/openbsm/bin/auditdistd/proto_tcp.c +++ b/contrib/openbsm/bin/auditdistd/proto_tcp.c @@ -494,7 +494,7 @@ tcp_wrap(int fd, bool client, void **ctxp) } static int -tcp_send(void *ctx, const unsigned char *data, size_t size, int fd) +tcp_send(void *ctx, const void *data, size_t size, int fd) { struct tcp_ctx *tctx = ctx; @@ -510,7 +510,7 @@ tcp_send(void *ctx, const unsigned char *data, size_t size, int fd) } static int -tcp_recv(void *ctx, unsigned char *data, size_t size, int *fdp) +tcp_recv(void *ctx, void *data, size_t size, int *fdp) { struct tcp_ctx *tctx = ctx; diff --git a/contrib/openbsm/bin/auditdistd/proto_tls.c b/contrib/openbsm/bin/auditdistd/proto_tls.c index 61f1bfd8d56e..9db8375d40d0 100644 --- a/contrib/openbsm/bin/auditdistd/proto_tls.c +++ b/contrib/openbsm/bin/auditdistd/proto_tls.c @@ -870,7 +870,7 @@ tls_wrap(int fd, bool client, void **ctxp) } static int -tls_send(void *ctx, const unsigned char *data, size_t size, int fd) +tls_send(void *ctx, const void *data, size_t size, int fd) { struct tls_ctx *tlsctx = ctx; @@ -889,7 +889,7 @@ tls_send(void *ctx, const unsigned char *data, size_t size, int fd) } static int -tls_recv(void *ctx, unsigned char *data, size_t size, int *fdp) +tls_recv(void *ctx, void *data, size_t size, int *fdp) { struct tls_ctx *tlsctx = ctx; diff --git a/contrib/openbsm/bin/auditdistd/proto_uds.c b/contrib/openbsm/bin/auditdistd/proto_uds.c index 71f7a599e3dd..c07e447e5803 100644 --- a/contrib/openbsm/bin/auditdistd/proto_uds.c +++ b/contrib/openbsm/bin/auditdistd/proto_uds.c @@ -227,7 +227,7 @@ uds_accept(void *ctx, void **newctxp) } static int -uds_send(void *ctx, const unsigned char *data, size_t size, int fd) +uds_send(void *ctx, const void *data, size_t size, int fd) { struct uds_ctx *uctx = ctx; @@ -239,7 +239,7 @@ uds_send(void *ctx, const unsigned char *data, size_t size, int fd) } static int -uds_recv(void *ctx, unsigned char *data, size_t size, int *fdp) +uds_recv(void *ctx, void *data, size_t size, int *fdp) { struct uds_ctx *uctx = ctx;