--- test/scotest.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/scotest.c b/test/scotest.c index 17bd8a6..fc87f5e 100644 --- a/test/scotest.c +++ b/test/scotest.c @@ -269,8 +269,8 @@ static void send_mode(char *svr) seq = 0; while (1) { - *(uint32_t *) buf = htobl(seq); - *(uint16_t *) (buf + 4) = htobs(data_size); + bt_put_le32(seq, buf); + bt_put_le16(data_size, buf + 4); seq++; if (send(sk, buf, so.mtu, 0) <= 0) { -- 1.7.8.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html