2014-02-12 19:13:21

by Anderson Lizardo

[permalink] [raw]
Subject: [PATCH BlueZ] android/test-ipc: Use correct boolean values for glib functions

---
android/test-ipc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/android/test-ipc.c b/android/test-ipc.c
index 3a0729e..2def97b 100644
--- a/android/test-ipc.c
+++ b/android/test-ipc.c
@@ -263,8 +263,8 @@ static void execute_context(struct context *context)
{
g_main_loop_run(context->main_loop);

- g_io_channel_shutdown(context->notif_io, true, NULL);
- g_io_channel_shutdown(context->cmd_io, true, NULL);
+ g_io_channel_shutdown(context->notif_io, TRUE, NULL);
+ g_io_channel_shutdown(context->cmd_io, TRUE, NULL);
g_io_channel_unref(context->cmd_io);
g_io_channel_unref(context->notif_io);

--
1.7.9.5



2014-02-12 19:21:02

by Szymon Janc

[permalink] [raw]
Subject: Re: [PATCH BlueZ] android/test-ipc: Use correct boolean values for glib functions

Hi Anderson,

On Wednesday 12 of February 2014 15:13:21 Anderson Lizardo wrote:
> ---
> android/test-ipc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/android/test-ipc.c b/android/test-ipc.c
> index 3a0729e..2def97b 100644
> --- a/android/test-ipc.c
> +++ b/android/test-ipc.c
> @@ -263,8 +263,8 @@ static void execute_context(struct context *context)
> {
> g_main_loop_run(context->main_loop);
>
> - g_io_channel_shutdown(context->notif_io, true, NULL);
> - g_io_channel_shutdown(context->cmd_io, true, NULL);
> + g_io_channel_shutdown(context->notif_io, TRUE, NULL);
> + g_io_channel_shutdown(context->cmd_io, TRUE, NULL);
> g_io_channel_unref(context->cmd_io);
> g_io_channel_unref(context->notif_io);

Applied, thanks.

--
BR
Szymon Janc