From cd09b06adb30135f55909c02840c339422217d95 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sun, 1 Oct 2017 14:41:43 +0100 Subject: Fixed warnings all over the places --- cmd/cmd_todo.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'cmd/cmd_todo.c') diff --git a/cmd/cmd_todo.c b/cmd/cmd_todo.c index e525d38..2b3993b 100644 --- a/cmd/cmd_todo.c +++ b/cmd/cmd_todo.c @@ -32,19 +32,18 @@ void *cmd_todo(void *data) return NULL; } - PNL(); fret = rpc_call_req_unmarsh(nb_req, &req); - PNL(); if (fret != 0) { ERROR("Invalid request format\n"); return NULL; } - PNL(); //---------------------------------------------------------------------------- //main code + PRINT("%s-%s-%s-%s-%s\n", req->method, req->params, req->user, req->mask, req->server); + //---------------------------------------------------------------------------- //prepare response @@ -53,24 +52,21 @@ void *cmd_todo(void *data) PNL(); resp = rpc_call_resp_new("Success","None",1); - resp->user = alloc_new_str(""); - resp->server = alloc_new_str(""); - resp->mask = alloc_new_str(""); + resp->user = alloc_new_str(" "); + resp->server = alloc_new_str(" "); + resp->mask = alloc_new_str(" "); PNL(); rpc_call_resp_marsh(resp, &nb_resp); PNL(); - nb_buf = nb_create(nb_resp); + nb_buf = (char *)nb_create(nb_resp); if (nb_buf) { ret = nb_buf; } - PNL(); nb_free(nb_resp); - PNL(); rpc_call_resp_free(resp); - PNL(); return ret; } -- cgit v1.2.3