diff options
-rw-r--r-- | libvxi11client/client.c | 3 |
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 |