From: lpoulain Date: Tue, 25 Mar 2014 06:05:56 +0000 (+0100) Subject: Bluedroid: Fix UUID unsigned/signed comparison X-Git-Tag: android-x86-7.1-r1~1261^2~111^2~6^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f5726daa6c720685cbc0e5250a2a5ee6b4860210;p=android-x86%2Fsystem-bt.git Bluedroid: Fix UUID unsigned/signed comparison UUID type was never detected as a 16 bits UUID due to a comparison between signed and unsigned char in uuidType(). Change-Id: I6205ab4c2568f03b4692e0ce8a1dec216f1cdc0e Signed-off-by: lpoulain Signed-off-by: Yong Yao --- diff --git a/btif/src/btif_gatt_util.c b/btif/src/btif_gatt_util.c index ab56f99ae..d7ac17af6 100644 --- a/btif/src/btif_gatt_util.c +++ b/btif/src/btif_gatt_util.c @@ -43,7 +43,7 @@ #define GATTC_READ_VALUE_TYPE_VALUE 0x0000 /* Attribute value itself */ #define GATTC_READ_VALUE_TYPE_AGG_FORMAT 0x2905 /* Characteristic Aggregate Format*/ -static char BASE_UUID[16] = { +static unsigned char BASE_UUID[16] = { 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };