Created
December 29, 2011 17:02
-
-
Save dvdhrm/1534987 to your computer and use it in GitHub Desktop.
[PATCH 1/2] Fix wiimote device_get_address to use new API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6bf559eba2b7ad99964f14631a2275969720789b Mon Sep 17 00:00:00 2001 | |
From: David Herrmann <dh.herrmann@googlemail.com> | |
Date: Thu, 29 Dec 2011 17:54:11 +0100 | |
Subject: [PATCH 1/2] Fix wiimote device_get_address to use new API | |
Commit b06899eace1f484b387aae0e568fb1da988b468c introduced a new API for | |
device_get_name but apparently missed fixing the call in plugins/wiimote.c. This | |
patch converts the plugin to use the new API. | |
--- | |
plugins/wiimote.c | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/plugins/wiimote.c b/plugins/wiimote.c | |
index fead72a..1ae638b 100644 | |
--- a/plugins/wiimote.c | |
+++ b/plugins/wiimote.c | |
@@ -63,7 +63,7 @@ static ssize_t wii_pincb(struct btd_adapter *adapter, struct btd_device *device, | |
char addr[18]; | |
adapter_get_address(adapter, &sba); | |
- device_get_address(device, &dba); | |
+ device_get_address(device, &dba, NULL); | |
ba2str(&dba, addr); | |
vendor = btd_device_get_vendor(device); | |
-- | |
1.7.8.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment