2014-06-17 13:47:14

by Grzegorz Kolodziejczyk

[permalink] [raw]
Subject: [PATCH] android/health: Make coding style consistent for array parameter

---
android/health.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/android/health.c b/android/health.c
index 58323d9..60c4c99 100644
--- a/android/health.c
+++ b/android/health.c
@@ -1093,8 +1093,7 @@ static int connect_mcl(struct health_channel *channel)
search_cb, channel, NULL, 0);
}

-static struct health_device *create_device(uint16_t app_id,
- const uint8_t addr[])
+static struct health_device *create_device(uint16_t app_id, const uint8_t *addr)
{
struct health_device *dev;

--
1.9.3



2014-06-17 19:26:51

by Szymon Janc

[permalink] [raw]
Subject: Re: [PATCH] android/health: Make coding style consistent for array parameter

Hi Grzegorz,

On Tuesday 17 June 2014 15:47:14 Grzegorz Kolodziejczyk wrote:
> ---
> android/health.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/android/health.c b/android/health.c
> index 58323d9..60c4c99 100644
> --- a/android/health.c
> +++ b/android/health.c
> @@ -1093,8 +1093,7 @@ static int connect_mcl(struct health_channel *channel)
> search_cb, channel, NULL, 0);
> }
>
> -static struct health_device *create_device(uint16_t app_id,
> - const uint8_t addr[])
> +static struct health_device *create_device(uint16_t app_id, const uint8_t
> *addr) {
> struct health_device *dev;

Applied. Thanks.

--
Szymon K. Janc
[email protected]