summaryrefslogtreecommitdiff
path: root/libvxi11client
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-10 17:56:04 +0900
committerdaniel <danieruru@gmail.com>2013-01-10 17:56:04 +0900
commitbd451ce0f4855bc2dfd8c19b1f17a5cd60eb6650 (patch)
treea3a739c7e70bbf9473af42217ee7e911f810df99 /libvxi11client
parent54329a7c7f740171d1594c6c6195277c2924f31f (diff)
add some more code to the server side
Diffstat (limited to 'libvxi11client')
-rw-r--r--libvxi11client/client.c4
1 files changed, 3 insertions, 1 deletions
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)