Subject: [PATCH] Fix wrong parameter name in device.h

---
src/device.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/device.h b/src/device.h
index 21f67d0..2b45223 100644
--- a/src/device.h
+++ b/src/device.h
@@ -47,7 +47,7 @@ const sdp_record_t *btd_device_get_record(struct btd_device *device,
const char *uuid);
void btd_device_add_uuid(struct btd_device *device, const char *uuid);
struct btd_adapter *device_get_adapter(struct btd_device *device);
-void device_get_address(struct btd_device *adapter, bdaddr_t *bdaddr);
+void device_get_address(struct btd_device *device, bdaddr_t *bdaddr);
const gchar *device_get_path(struct btd_device *device);
struct agent *device_get_agent(struct btd_device *device);
gboolean device_is_busy(struct btd_device *device);
--
1.7.0.4



2010-09-22 19:25:40

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] Fix wrong parameter name in device.h

Hi,

On Wed, Sep 22, 2010, Jose Antonio Santos Cadenas wrote:
> ---
> src/device.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/device.h b/src/device.h
> index 21f67d0..2b45223 100644
> --- a/src/device.h
> +++ b/src/device.h
> @@ -47,7 +47,7 @@ const sdp_record_t *btd_device_get_record(struct btd_device *device,
> const char *uuid);
> void btd_device_add_uuid(struct btd_device *device, const char *uuid);
> struct btd_adapter *device_get_adapter(struct btd_device *device);
> -void device_get_address(struct btd_device *adapter, bdaddr_t *bdaddr);
> +void device_get_address(struct btd_device *device, bdaddr_t *bdaddr);
> const gchar *device_get_path(struct btd_device *device);
> struct agent *device_get_agent(struct btd_device *device);
> gboolean device_is_busy(struct btd_device *device);

Nice catch. The patch is now pushed upstream.

Johan