aboutsummaryrefslogtreecommitdiff
path: root/rpc_server.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-03-21 22:35:48 -0400
committerPaul Selkirk <paul@psgd.org>2016-03-21 22:37:53 -0400
commitcdaf07d30bd440cf3ee2f6615d044634734047bd (patch)
tree6086334b65da625dc782074064543c891dec1bfa /rpc_server.c
parent46793833737e925af47e57d99bd037226d1cb2c4 (diff)
stupid fixes
Diffstat (limited to 'rpc_server.c')
-rw-r--r--rpc_server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/rpc_server.c b/rpc_server.c
index d57fc57..6b3514c 100644
--- a/rpc_server.c
+++ b/rpc_server.c
@@ -50,8 +50,6 @@ static hal_error_t get_version(uint8_t **iptr, const uint8_t * const ilimit,
uint32_t version;
hal_error_t ret;
- check(hal_xdr_encode_int(optr, olimit, RPC_VERSION));
-
/* call the local function */
ret = hal_rpc_local_misc_dispatch.get_version(&version);
if (ret == HAL_OK)
@@ -605,7 +603,8 @@ void hal_rpc_server_main(void)
while (!interrupt) {
ilen = sizeof(inbuf);
- if (hal_rpc_recvfrom(inbuf, &ilen, &opaque) == HAL_OK) {
+ ret = hal_rpc_recvfrom(inbuf, &ilen, &opaque);
+ if (ret == HAL_OK) {
iptr = inbuf;
ilimit = inbuf + ilen;
optr = outbuf + 4; /* reserve 4 bytes for return code */