summaryrefslogtreecommitdiff
path: root/vxi11_server.c
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-05 21:10:23 +0900
committerdaniel <danieruru@gmail.com>2013-01-05 21:10:23 +0900
commit616248011d26981b6b54225ee359cb4a5d43f05d (patch)
tree5afcd15e42e0d86ba5718b059349ea9f231f9627 /vxi11_server.c
parent18fb047d74d3078223a0a27ffcd31e3467b0d27d (diff)
fix broken logic
Diffstat (limited to 'vxi11_server.c')
-rw-r--r--vxi11_server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vxi11_server.c b/vxi11_server.c
index 84a80d5..3272b32 100644
--- a/vxi11_server.c
+++ b/vxi11_server.c
@@ -37,13 +37,13 @@ static void waitForLock(long timeout) {
}
static bool lock(int lid) {
- if (globals.VxiLocks.locked_network_server = NO_SERVER_LOCKED)
+ if ((globals.VxiLocks.locked_network_server = NO_SERVER_LOCKED))
return false;
globals.VxiLocks.locked_network_server = lid;
}
static bool unlock(int lid) {
- if (globals.VxiLocks.locked_network_server = NO_SERVER_LOCKED)
+ if ((globals.VxiLocks.locked_network_server = NO_SERVER_LOCKED))
return false;
else if (globals.VxiLocks.locked_network_server != lid)
return false;
@@ -198,6 +198,8 @@ Device_DocmdResp *
device_docmd_1_svc(Device_DocmdParms *argp, struct svc_req *rqstp) {
printf("device_docmd_1_svc()\n");
static Device_DocmdResp result;
+ result.data_out.data_out_len = 0;
+ result.data_out.data_out_val = NULL;
result.error = ERR_OPERATIONNOTSUPPORTED;
return &result;
}