summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-23 21:11:31 +0900
committerdaniel <danieruru@gmail.com>2013-01-23 21:11:31 +0900
commit54756dfe181c9157e63f802efd3f84653553ca31 (patch)
tree14fac0ed7d30a045aa9397f369ef64d4020925e2
parent4172e1a125b1ede5b898580aaf9d0f5b1d788483 (diff)
Add the missing arg for read in the c client
-rw-r--r--libvxi11client/client.c3
1 files changed, 2 insertions, 1 deletions
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