summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2018-02-27 19:56:52 +0000
committerFreeArtMan <dos21h@gmail.com>2018-02-27 19:56:52 +0000
commit1f0c2eef146f215039b95187dba47e6e7dcf66c6 (patch)
tree1fa4d63b138952ee23307db6975da6f14773a505 /cmd
parentf9fde53de7f9a506536268a7bef5f46bb5509641 (diff)
downloadagni-master.tar.gz
agni-master.zip
cleanuo cmd_luaHEADmaster
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cmd_lua.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/cmd/cmd_lua.c b/cmd/cmd_lua.c
index 2c850be..8127af6 100644
--- a/cmd/cmd_lua.c
+++ b/cmd/cmd_lua.c
@@ -140,17 +140,12 @@ int lua_excute(const char *fname, rpc_call_request *req, rpc_call_response **res
int r_id;
size_t sz;
-
check_table_key_string(L, "result", (const char **)&r_result, &sz);
- //printf("RESULT:%s\n", r_result);
check_table_key_integer(L, "id", &r_id);
- //printf("ID:%d\n", r_id);
check_table_key_string(L, "error", (const char **)&r_error, &sz);
- //printf("ERROR:%s\n", r_error);
-
if (r_result == NULL) r_result = "!";
if (r_error == NULL) r_error = "!";
*resp = rpc_call_resp_new(alloc_new_str(r_result), alloc_new_str(r_error), r_id);