From nobody Thu Sep 18 09:58:15 2025 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 4cSB0R57dhz686Sk; Thu, 18 Sep 2025 09:58:15 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cSB0R2Ddyz40r5; Thu, 18 Sep 2025 09:58:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758189495; 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=BUyqw1clfKXIbO7+dPA7YAMd8h/og+cNA1/mCP5mLk0=; b=dM9LXXlOHgRi9RUatXglNAPE41gvo/GYy/gca0vnmR3ffi6l75CN/XaSKNhr3zcSVcUVFw 8U4SnkYk3LHmXdQ+XObtS3l+FodavnkNq106IQnrlq0sa3z5CHuHis4prRBPR7wx9cb8CM 1zss5Qghp51Ri4qGKnbb04fFbZ68WxPzMUCD0hqJaUy2ll9Pt/A+UHUU58l6th5lZjdyr/ yFzjsNNdOpRL2rhfACgsXlmI6fDGf7wzM8Xb3P/pkYPoe6vzHd0Vos2TOqiFIwCo2Dt7c0 gtJAEi796m+tXtWOWT0CZPJOHAKlT8B2qqdw364P4sasDBFERZuGxUki+Xw+rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758189495; 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=BUyqw1clfKXIbO7+dPA7YAMd8h/og+cNA1/mCP5mLk0=; b=AYGRN/wK1P4xFbvaS58r4I0TalshbjVz8CR92CtS8jmz8sD4OPJ5ZVjsBC3WvkcY+3tA+A Ov1sMbE82py6v+HaOTQyM+8qfVwcGJJJ9gwlG/00pegcblAfoLNJK0k214U0VJ0f58euXj MmaI6813pPuNAgXl6wvg5akKrb38c41f3T+hHiHcETgil0VjFtGmQ39DoV0sxlwRMWcqw7 W3G9mKmktiAdRtSwbFEo0iDvZ3vA1a1T4wpvOvOFaWG5rK1l5htbGAlH5kFeEY/t97yuLV wyVWCDLjkdJYdj3RourFeviqWiReGUsnC5A0R/Li7TFZQx52U7BUVomwgKbkXQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758189495; a=rsa-sha256; cv=none; b=ImqwSNbZbholJMguoVvogDJGrxhGqPunNqt4px0S5hZB/bhWQB28R/dlMP2opCnVGDaGfd fF46uhS3AQnb96FkR8RGdz9iZFocyiXQus7pTu15wMMw3U6hb/GrfYHfPLr/VqUL3nLK0D SafAuK+n8SGiS9HwpYmy87dKbkz1VUNWt1vsT6KGcOgFFdth1oJiP6/iMmXkcknOG1Bozr cSNHeWvWz/JPmJuXwv/nUO1AdNWedk8YEdjcDElvN+/tOeZ31HUswK1MPyAL87HP/t/5iI 0EtGpNxWBmMYMViN6p6Wim6M9K/NRUpZzN/h4OrOCQRCUtxqX+NzdyGHAvv/FA== 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 4cSB0R1p7nz164X; Thu, 18 Sep 2025 09:58:15 +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 58I9wFYu034842; Thu, 18 Sep 2025 09:58:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58I9wFuC034839; Thu, 18 Sep 2025 09:58:15 GMT (envelope-from git) Date: Thu, 18 Sep 2025 09:58:15 GMT Message-Id: <202509180958.58I9wFuC034839@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 3501e2597e9e - stable/15 - sdp(3): Change bdaddr parameter type in sdp_register_service() 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 3501e2597e9e241b57832941912452c48df05e56 Auto-Submitted: auto-generated The branch stable/15 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=3501e2597e9e241b57832941912452c48df05e56 commit 3501e2597e9e241b57832941912452c48df05e56 Author: Christos Margiolis AuthorDate: 2025-09-17 14:12:03 +0000 Commit: Christos Margiolis CommitDate: 2025-09-18 09:57:22 +0000 sdp(3): Change bdaddr parameter type in sdp_register_service() Fixes compiler error when the caller passes a const bdaddr_t * paramemeter (e.g., NG_HCI_BDADDR_ANY). Sponsored by: The FreeBSD Foundation MFC after: 1 day Reviewed by: markj, emaste Differential Revision: https://reviews.freebsd.org/D52582 (cherry picked from commit 3d14cc82d7a8c11cd164a6ba668d20b939c576fe) --- lib/libsdp/sdp.3 | 4 ++-- lib/libsdp/sdp.h | 2 +- lib/libsdp/service.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libsdp/sdp.3 b/lib/libsdp/sdp.3 index dcd9077798ea..015f9cd8fb44 100644 --- a/lib/libsdp/sdp.3 +++ b/lib/libsdp/sdp.3 @@ -24,7 +24,7 @@ .\" .\" $Id: sdp.3,v 1.1 2003/09/07 20:34:19 max Exp $ .\" -.Dd April 30, 2018 +.Dd September 16, 2025 .Dt SDP 3 .Os .Sh NAME @@ -87,7 +87,7 @@ .Fn sdp_uuid2desc "uint16_t uuid" .Ft int32_t .Fo sdp_register_service -.Fa "void *xss" "uint16_t uuid" "bdaddr_p const bdaddr" "uint8_t const *data" +.Fa "void *xss" "uint16_t uuid" "const bdaddr_t *bdaddr" "uint8_t const *data" .Fa "uint32_t datalen" "uint32_t *handle" .Fc .Ft int32_t diff --git a/lib/libsdp/sdp.h b/lib/libsdp/sdp.h index faad36aefca6..0c9474a70eff 100644 --- a/lib/libsdp/sdp.h +++ b/lib/libsdp/sdp.h @@ -702,7 +702,7 @@ typedef struct sdp_panu_profile sdp_panu_profile_t; typedef struct sdp_panu_profile * sdp_panu_profile_p; int32_t sdp_register_service (void *xss, uint16_t uuid, - bdaddr_p const bdaddr, uint8_t const *data, + const bdaddr_t *bdaddr, uint8_t const *data, uint32_t datalen, uint32_t *handle); int32_t sdp_unregister_service (void *xss, uint32_t handle); int32_t sdp_change_service (void *xss, uint32_t handle, diff --git a/lib/libsdp/service.c b/lib/libsdp/service.c index 9f07d1ba86ba..2cce6c133600 100644 --- a/lib/libsdp/service.c +++ b/lib/libsdp/service.c @@ -45,7 +45,7 @@ static int32_t sdp_receive_error_pdu(sdp_session_p ss); int32_t -sdp_register_service(void *xss, uint16_t uuid, bdaddr_p const bdaddr, +sdp_register_service(void *xss, uint16_t uuid, const bdaddr_t *bdaddr, uint8_t const *data, uint32_t datalen, uint32_t *handle) { sdp_session_p ss = (sdp_session_p) xss;