From 54756dfe181c9157e63f802efd3f84653553ca31 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 23 Jan 2013 21:11:31 +0900 Subject: Add the missing arg for read in the c client --- libvxi11client/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libvxi11client/client.c') diff --git a/libvxi11client/client.c b/libvxi11client/client.c index e8c4905..f0d9629 100644 --- a/libvxi11client/client.c +++ b/libvxi11client/client.c @@ -61,8 +61,9 @@ int main(int argc, char *argv[]) { printf("Error writing data\n"); // read some bytes + unsigned int reason; char buffer[1024]; - int bytesread = vxi11_read(&ctx, buffer, sizeof(buffer), false, false, 0); + int bytesread = vxi11_read(&ctx, buffer, sizeof(buffer), false, false, 0, &reason); if (bytesread >= 0) printf("Read %d bytes, %s\n", bytesread, buffer); else -- cgit