summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/bluetooth.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/bluetooth.h b/include/bluetooth.h
index 8d1c7c51..8026832b 100644
--- a/include/bluetooth.h
+++ b/include/bluetooth.h
@@ -86,7 +86,8 @@ typedef struct {
uint8_t b[6];
} __attribute__((packed)) bdaddr_t;
-#define BDADDR_ANY ((bdaddr_t *)"\000\000\000\000\000")
+#define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
+#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})
/* Copy, swap, convert BD Address */
static inline int bacmp(bdaddr_t *ba1, bdaddr_t *ba2)