git: 8813774cebc9 - stable/15 - ng_hci: Cast NG_HCI_BDADDR_ANY to const bdaddr_t *
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Sep 2025 09:58:12 UTC
The branch stable/15 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=8813774cebc975d7c031beb9b162007bde959f3c commit 8813774cebc975d7c031beb9b162007bde959f3c Author: Christos Margiolis <christos@FreeBSD.org> AuthorDate: 2025-09-15 13:09:42 +0000 Commit: Christos Margiolis <christos@FreeBSD.org> CommitDate: 2025-09-18 09:57:07 +0000 ng_hci: Cast NG_HCI_BDADDR_ANY to const bdaddr_t * This is needed to address some compiler errors cleanly, where consumer functions want this address to be a const pointer. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D52310 (cherry picked from commit 680f9acc3657efcea07d8ac0954645b6eaf8dac8) --- sys/netgraph/bluetooth/include/ng_hci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/bluetooth/include/ng_hci.h b/sys/netgraph/bluetooth/include/ng_hci.h index 44a14e62f4ed..ce3291770740 100644 --- a/sys/netgraph/bluetooth/include/ng_hci.h +++ b/sys/netgraph/bluetooth/include/ng_hci.h @@ -448,7 +448,7 @@ typedef struct { typedef bdaddr_t * bdaddr_p; /* Any BD_ADDR. Note: This is actually 7 bytes (count '\0' terminator) */ -#define NG_HCI_BDADDR_ANY ((bdaddr_p) "\000\000\000\000\000\000") +#define NG_HCI_BDADDR_ANY (&(const bdaddr_t){"\000\000\000\000\000\000"}) /* HCI status return parameter */ typedef struct {