diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-06-06 12:49:56 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-06-06 12:49:56 +0000 | 
| commit | 71fc3121bc9f76112e13e9d29f7822f5db8dd3e9 (patch) | |
| tree | dea287412e9b84b30e6648037fb4dda679c592e8 | |
| parent | c2d5b70279ed861f01481c4e50f8dd2db3d94c2e (diff) | |
use proper casts for pin_req_cmp
| -rw-r--r-- | hcid/dbus-hci.c | 4 | 
1 files 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) | 
