version 1.7.2.5, 2012/05/16 13:32:47
|
version 1.7.2.6, 2012/05/16 14:46:29
|
Line 282 rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, ait_val_t
|
Line 282 rpc_cli_sendBLOB(rpc_cli_t * __restrict cli, ait_val_t
|
if (!cli || !var || !data) { |
if (!cli || !var || !data) { |
rpc_SetErr(EINVAL, "Invalid arguments"); |
rpc_SetErr(EINVAL, "Invalid arguments"); |
return -1; |
return -1; |
} | } else |
| memset(&hdr, 0, sizeof hdr); |
|
|
rpc_addPktSession(&hdr.hdr_session, cli->cli_parent); |
rpc_addPktSession(&hdr.hdr_session, cli->cli_parent); |
hdr.hdr_cmd = set; |
hdr.hdr_cmd = set; |
Line 366 rpc_cli_recvBLOB(rpc_cli_t * __restrict cli, ait_val_t
|
Line 367 rpc_cli_recvBLOB(rpc_cli_t * __restrict cli, ait_val_t
|
if (!*data) { |
if (!*data) { |
LOGERR; |
LOGERR; |
return -1; |
return -1; |
} else | } else { |
| memset(&hdr, 0, sizeof hdr); |
memset(*data, 0, AIT_LEN(var)); |
memset(*data, 0, AIT_LEN(var)); |
|
} |
|
|
rpc_addPktSession(&hdr.hdr_session, cli->cli_parent); |
rpc_addPktSession(&hdr.hdr_session, cli->cli_parent); |
hdr.hdr_cmd = get; |
hdr.hdr_cmd = get; |
Line 461 rpc_cli_delBLOB(rpc_cli_t * __restrict cli, ait_val_t
|
Line 464 rpc_cli_delBLOB(rpc_cli_t * __restrict cli, ait_val_t
|
if (!cli || !var) { |
if (!cli || !var) { |
rpc_SetErr(EINVAL, "Invalid arguments"); |
rpc_SetErr(EINVAL, "Invalid arguments"); |
return -1; |
return -1; |
} | } else |
| memset(&hdr, 0, sizeof hdr); |
|
|
rpc_addPktSession(&hdr.hdr_session, cli->cli_parent); |
rpc_addPktSession(&hdr.hdr_session, cli->cli_parent); |
hdr.hdr_cmd = unset; |
hdr.hdr_cmd = unset; |