From 1f0c2eef146f215039b95187dba47e6e7dcf66c6 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Tue, 27 Feb 2018 19:56:52 +0000 Subject: cleanuo cmd_lua --- cmd/cmd_lua.c | 5 ----- 1 file changed, 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); -- cgit v1.2.3