From bd451ce0f4855bc2dfd8c19b1f17a5cd60eb6650 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 10 Jan 2013 17:56:04 +0900 Subject: add some more code to the server side --- libvxi11client/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libvxi11client') diff --git a/libvxi11client/client.c b/libvxi11client/client.c index 9656e4d..bc8a49f 100644 --- a/libvxi11client/client.c +++ b/libvxi11client/client.c @@ -10,6 +10,8 @@ static char* geterrorstring(int errorcode) { return "invalid state (not connected) or no response from server"; case -4: return "invalid link identifier"; + case -6: + return "channel not established"; case -8: return "operation not supported"; case -11: @@ -126,7 +128,7 @@ int main(int argc, char *argv[]) { // create interrupt channel printf("-- Testing interrupt channel --\n"); - if ((err = vxi11_create_intr_chan() > 0)) { + if ((err = vxi11_create_intr_chan()) > 0) { printf("Created interrupt channel\n"); // destroy interrupt channel if ((err = vxi11_destroy_intr_chan()) > 0) -- cgit