summaryrefslogtreecommitdiff
path: root/tbl_qcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tbl_qcmd.c')
-rw-r--r--tbl_qcmd.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/tbl_qcmd.c b/tbl_qcmd.c
index ca8830f..b360e8b 100644
--- a/tbl_qcmd.c
+++ b/tbl_qcmd.c
@@ -83,9 +83,9 @@ int tbl_exec_in_s(tbl_exec *tbl, char *cmd)
int tbl_exec_run(tbl_exec *tbl, char *cmd, char *user, char *mask, char *server, void **resp)
{
- int ret=-1;
- void *clbk_data=NULL;
- char *char_iter=NULL;
+ int ret = -1;
+ void *clbk_data = NULL;
+ char *char_iter = NULL;
int i;
tble_exec *el=NULL;
@@ -141,10 +141,10 @@ int tbl_exec_run(tbl_exec *tbl, char *cmd, char *user, char *mask, char *server,
ret_resp = el->callback(clbk_data); //no params for now
} else if (el->type == TBL_T_RPC)
{
- rpc_call_request *req = NULL;
+ rpc_call_request *req = NULL;
rpc_call_response *resp = NULL;
- netbyte_store *nb_req=NULL, *nb_resp=NULL;
- char *buf_nb = NULL, *resp_buf=NULL;
+ netbyte_store *nb_req=NULL, *nb_resp=NULL;
+ char *buf_nb = NULL, *resp_buf=NULL;
nb_resp = malloc(sizeof(netbyte_store));
nb_req = malloc(sizeof(netbyte_store));
@@ -247,7 +247,7 @@ int tbl_exec_run(tbl_exec *tbl, char *cmd, char *user, char *mask, char *server,
tble_exec *tbl_exec_search_cmd(tbl_exec *tbl, tble_qcmd *cmd)
{
- tble_exec *ret = NULL;
+ tble_exec *ret = NULL;
tble_exec *cur_exec = NULL;
int i;
@@ -392,8 +392,8 @@ tbl_qcmd* tbl_qcmd_c(int size)
MVAR_ALLOC_STRC(ret,tbl_qcmd,{
return NULL;});
- ret->id = uniq_id();
- ret->size = 0;
+ ret->id = uniq_id();
+ ret->size = 0;
ret->max_size = size;
//alloc array of (tble_qcmd*) pointers
@@ -494,9 +494,9 @@ int tbl_qcmd_chk(tbl_qcmd *tbl)
//delete but dont free from list? well lets free
int tbl_qcmd_del_by_idx(tbl_qcmd *tbl, int idx)
{
- int ret=-1;
- tble_qcmd *replace_cmd=NULL;
- tble_qcmd *remove_cmd=NULL;
+ int ret = -1;
+ tble_qcmd *replace_cmd = NULL;
+ tble_qcmd *remove_cmd = NULL;
if (tbl == NULL || idx < 0)
{
@@ -540,7 +540,7 @@ int tbl_qcmd_del_by_id(tbl_qcmd *tbl, int id)
{
int i;
tble_qcmd *replace_cmd = NULL;
- tble_qcmd *remove_cmd = NULL;
+ tble_qcmd *remove_cmd = NULL;
if (tbl == NULL)
@@ -685,12 +685,12 @@ tble_cmd_param* tbl_cmd_param(tble_qcmd *cmd)
PERM();
return NULL;});
- ret->id = uniq_id();
- ret->qid = cmd->id;
+ ret->id = uniq_id();
+ ret->qid = cmd->id;
ret->ircident = alloc_new_str(cmd->ircident);
- ret->cmd = alloc_new_str(cmd->cmd);
- ret->param = alloc_new_str(cmd->param);
- ret->out_q = cmd->out_q;
+ ret->cmd = alloc_new_str(cmd->cmd);
+ ret->param = alloc_new_str(cmd->param);
+ ret->out_q = cmd->out_q;
return ret;
}
@@ -745,7 +745,7 @@ tble_cmd_resp* tbl_cmd_resp_c(tble_cmd_param *param)
return NULL;
});
- ret->id = uniq_id();
+ ret->id = uniq_id();
ret->qid = param->qid;
return ret;