From 60e9744f281cde85790dd764cd4e52dc4b19f6b1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 29 Sep 2008 21:34:18 +0200 Subject: remove a few compiler warnings in BlueZ code --- src/modules/bluetooth/sbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/bluetooth/sbc.c') diff --git a/src/modules/bluetooth/sbc.c b/src/modules/bluetooth/sbc.c index 6303421f..02a6143d 100644 --- a/src/modules/bluetooth/sbc.c +++ b/src/modules/bluetooth/sbc.c @@ -145,7 +145,7 @@ static uint8_t sbc_crc8(const uint8_t *data, size_t len) octet = data[i]; for (i = 0; i < len % 8; i++) { - char bit = ((octet ^ crc) & 0x80) >> 7; + unsigned char bit = ((octet ^ crc) & 0x80) >> 7; crc = ((crc & 0x7f) << 1) ^ (bit ? 0x1d : 0); -- cgit