diff --git a/src/shared/gatt-db.c b/src/shared/gatt-db.c
index 65c5759..6b5e84c 100644
--- a/src/shared/gatt-db.c
+++ b/src/shared/gatt-db.c
{
const struct gatt_db_service *service = data;
- return service->attributes[0]->handle == PTR_TO_INT(user_data);
+ return service->attributes[0]->handle == PTR_TO_UINT(user_data);
}
static struct gatt_db_attribute *new_attribute(const bt_uuid_t *type,
struct gatt_db_service *service;
service = queue_remove_if(db->services, match_service_by_handle,
- INT_TO_PTR(handle));
+ UINT_TO_PTR(handle));
if (!service)
return false;
int i;
service = queue_find(db->services, match_service_by_handle,
- INT_TO_PTR(handle));
+ UINT_TO_PTR(handle));
if (!service)
return 0;
int i;
service = queue_find(db->services, match_service_by_handle,
- INT_TO_PTR(handle));
+ UINT_TO_PTR(handle));
if (!service)
return 0;
int index;
service = queue_find(db->services, match_service_by_handle,
- INT_TO_PTR(handle));
+ UINT_TO_PTR(handle));
if (!service)
return 0;
included_service = queue_find(db->services, match_service_by_handle,
- INT_TO_PTR(included_handle));
+ UINT_TO_PTR(included_handle));
if (!included_service)
return 0;
struct gatt_db_service *service;
service = queue_find(db->services, match_service_by_handle,
- INT_TO_PTR(handle));
+ UINT_TO_PTR(handle));
if (!service)
return false;
static bool find_service_for_handle(const void *data, const void *user_data)
{
const struct gatt_db_service *service = data;
- uint16_t handle = PTR_TO_INT(user_data);
+ uint16_t handle = PTR_TO_UINT(user_data);
uint16_t start, end;
start = service->attributes[0]->handle;
return false;
service = queue_find(db->services, find_service_for_handle,
- INT_TO_PTR(handle));
+ UINT_TO_PTR(handle));
if (!service)
return false;
struct gatt_db_attribute *a;
service = queue_find(db->services, find_service_for_handle,
- INT_TO_PTR(handle));
+ UINT_TO_PTR(handle));
if (!service)
return false;
uint16_t service_handle;
service = queue_find(db->services, find_service_for_handle,
- INT_TO_PTR(handle));
+ UINT_TO_PTR(handle));
if (!service)
return NULL;
struct gatt_db_service *service;
service = queue_find(db->services, find_service_for_handle,
- INT_TO_PTR(handle));
+ UINT_TO_PTR(handle));
if (!service)
return 0;
struct gatt_db_service *service;
service = queue_find(db->services, find_service_for_handle,
- INT_TO_PTR(handle));
+ UINT_TO_PTR(handle));
if (!service)
return false;
uint16_t service_handle;
service = queue_find(db->services, find_service_for_handle,
- INT_TO_PTR(handle));
+ UINT_TO_PTR(handle));
if (!service)
return false;