diff --git a/android/hidhost.c b/android/hidhost.c
index 4226f69..81e7eb8 100644
--- a/android/hidhost.c
+++ b/android/hidhost.c
#include "lib/sdp.h"
#include "lib/sdp_lib.h"
#include "src/shared/mgmt.h"
+#include "src/shared/util.h"
#include "src/sdp-client.h"
#include "src/uuid-helper.h"
#include "profiles/input/uhid_copy.h"
if (cmd->buf_size > 0) {
req[0] = req[0] | HID_GET_REPORT_SIZE_FIELD;
- bt_put_le16(cmd->buf_size, &req[2]);
+ put_le16(cmd->buf_size, &req[2]);
}
fd = g_io_channel_unix_get_fd(dev->ctrl_io);
diff --git a/src/eir.c b/src/eir.c
index cc1c5dd..be83718 100644
--- a/src/eir.c
+++ b/src/eir.c
#include <bluetooth/hci.h>
#include <bluetooth/sdp.h>
+#include "src/shared/util.h"
#include "uuid-helper.h"
#include "eir.h"
eir_total_len += eir_optional_len;
/* store total length */
- bt_put_le16(eir_total_len, data);
+ put_le16(eir_total_len, data);
return eir_total_len;
}
diff --git a/tools/l2test.c b/tools/l2test.c
index 0993f74..8e62227 100644
--- a/tools/l2test.c
+++ b/tools/l2test.c
#include <bluetooth/hci_lib.h>
#include <bluetooth/l2cap.h>
+#include "src/shared/util.h"
+
#define NIBBLE_TO_ASCII(c) ((c) < 0x0a ? (c) + 0x30 : (c) + 0x57)
#define BREDR_DEFAULT_PSM 0x1011
seq = 0;
while ((num_frames == -1) || (num_frames-- > 0)) {
bt_put_le32(seq, buf);
- bt_put_le16(data_size, buf + 4);
+ put_le16(data_size, buf + 4);
seq++;
diff --git a/tools/rctest.c b/tools/rctest.c
index 9281392..98fe792 100644
--- a/tools/rctest.c
+++ b/tools/rctest.c
#include <bluetooth/sdp.h>
#include <bluetooth/sdp_lib.h>
+#include "src/shared/util.h"
+
/* Test modes */
enum {
SEND,
seq = 0;
while ((num_frames == -1) || (num_frames-- > 0)) {
bt_put_le32(seq, buf);
- bt_put_le16(data_size, buf + 4);
+ put_le16(data_size, buf + 4);
seq++;
diff --git a/tools/scotest.c b/tools/scotest.c
index 227287d..13b9602 100644
--- a/tools/scotest.c
+++ b/tools/scotest.c
#include <bluetooth/bluetooth.h>
#include <bluetooth/sco.h>
+#include "src/shared/util.h"
+
/* Test modes */
enum {
SEND,
seq = 0;
while (1) {
bt_put_le32(seq, buf);
- bt_put_le16(data_size, buf + 4);
+ put_le16(data_size, buf + 4);
seq++;