diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2012-10-05 10:16:58 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-05 11:27:45 +0300 |
commit | ed6a8af4a31d00bd8a3b5aeb6f22b929f8637d6c (patch) | |
tree | a5cb07a0a27f3fef3926b2a33b08d6d829eb5aba /plugins | |
parent | 4c34fcd00be61a1b9a659358eb5f6318f0fe2150 (diff) | |
download | bluez-ed6a8af4a31d00bd8a3b5aeb6f22b929f8637d6c.tar.gz |
device: Convert device_get_address into simple getter
This allow to remove number of local variables used only to get device
address and pass it as pointer later on.
bdaddr_type parameter is also removed as there is device_get_addr_type
already present which can be used to get it if needed.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wiimote.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/wiimote.c b/plugins/wiimote.c index 93d1e2d70..5708bf800 100644 --- a/plugins/wiimote.c +++ b/plugins/wiimote.c @@ -62,11 +62,9 @@ static ssize_t wii_pincb(struct btd_adapter *adapter, struct btd_device *device, char *pinbuf, gboolean *display) { uint16_t vendor, product; - bdaddr_t dba; char addr[18], name[25]; - device_get_address(device, &dba, NULL); - ba2str(&dba, addr); + ba2str(device_get_address(device), addr); vendor = btd_device_get_vendor(device); product = btd_device_get_product(device); |