From 71fc3121bc9f76112e13e9d29f7822f5db8dd3e9 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 6 Jun 2008 12:49:56 +0000 Subject: use proper casts for pin_req_cmp --- hcid/dbus-hci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c index 9925b0f2..57dd14b1 100644 --- a/hcid/dbus-hci.c +++ b/hcid/dbus-hci.c @@ -930,9 +930,9 @@ int hcid_dbus_stop_device(uint16_t id) int pin_req_cmp(const void *p1, const void *p2) { const struct pending_auth_info *pb1 = p1; - const struct pending_auth_info *pb2 = p2; + const bdaddr_t *bda = p2; - return p2 ? bacmp(&pb1->bdaddr, &pb2->bdaddr) : -1; + return bda ? bacmp(&pb1->bdaddr, bda) : -1; } void hcid_dbus_new_auth_request(bdaddr_t *sba, bdaddr_t *dba, auth_type_t type) -- cgit