* fix #6373 by switching the BD... macros to take the address of corresponding
constants, which had to be defined in several places in order to be available in the kernel addons, network protocols and the server/kit. * enable -Werror for all servers git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38213 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -24,10 +24,17 @@ typedef struct {
|
||||
uint8 b[6];
|
||||
} __attribute__((packed)) bdaddr_t;
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
#define BDADDR_NULL (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
|
||||
#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})
|
||||
#define BDADDR_BROADCAST (&(bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}})
|
||||
extern const bdaddr_t kBdNullAddress;
|
||||
extern const bdaddr_t kBdLocalAddress;
|
||||
extern const bdaddr_t kBdBroadcastAddress;
|
||||
|
||||
}
|
||||
|
||||
#define BDADDR_NULL (&BPrivate::kBdNullAddress)
|
||||
#define BDADDR_LOCAL (&BPrivate::kBdLocalAddress)
|
||||
#define BDADDR_BROADCAST (&BPrivate::kBdBroadcastAddress)
|
||||
#define BDADDR_ANY BDADDR_BROADCAST
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user