Remove warning, use the common util function for the bdaddr utils class
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26983 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include <bluetooth/bluetooth.h>
|
||||
#include <bluetooth/bluetooth_util.h>
|
||||
|
||||
namespace Bluetooth {
|
||||
|
||||
@@ -35,7 +36,7 @@ public:
|
||||
|
||||
static bool Compare(bdaddr_t *ba1, bdaddr_t *ba2)
|
||||
{
|
||||
return (memcmp(ba1, ba2, sizeof(bdaddr_t)) == 0);
|
||||
return (bacmp(ba1, ba2) == 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#define _BLUETOOTH_UTIL_H
|
||||
|
||||
#include <bluetooth/bluetooth.h>
|
||||
#include <string.h>
|
||||
|
||||
/* BD Address management */
|
||||
static inline int bacmp(bdaddr_t* ba1, bdaddr_t* ba2)
|
||||
|
||||
Reference in New Issue
Block a user