From f9e333ade2529f257ced6bcff8e5824cb07eacf9 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Thu, 17 Mar 2011 14:57:51 +0100 Subject: Simplify async utils by removing extra LoopIo parameter. This patch removes the LoopIo parameter from asyncReader_run() by storing the initial pointer passed to asyncReader_init() inside the object itself. Same treatment is performed for: - AsyncReader - AsyncWriter - AsyncLineReader - AsyncConnector - AsyncConsoleConnect Change-Id: Ic74b817e4c326230ca1d38b3a5d8c4790c4f90c1 --- android/protocol/ui-commands-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android/protocol/ui-commands-proxy.c') diff --git a/android/protocol/ui-commands-proxy.c b/android/protocol/ui-commands-proxy.c index 76bf883..1aedc62 100644 --- a/android/protocol/ui-commands-proxy.c +++ b/android/protocol/ui-commands-proxy.c @@ -116,7 +116,7 @@ _uiCmdProxy_io_func(void* opaque, int fd, unsigned events) // Try to read asyncReader_init(&reader, read_buf, sizeof(read_buf), &uicmd->io); - status = asyncReader_read(&reader, &uicmd->io); + status = asyncReader_read(&reader); // We expect only error status here. if (status != ASYNC_ERROR) { derror("Unexpected read status %d in _uiCmdProxy_io_func\n", status); -- cgit v1.1