mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-29 20:04:57 +01:00
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
This commit is contained in:
1 parent
dafd960a3d
commit
680f9acc36
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user