aboutsummaryrefslogtreecommitdiffstats
path: root/agni.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-05-20 15:28:07 +0100
committerFreeArtMan <dos21h@gmail.com>2017-05-20 15:28:07 +0100
commitf5e6f56a82e56cfd72a0e2f1ce9b583398636545 (patch)
treea8705da438f341dc7a329db964747bf3ad379936 /agni.c
parenteca4a1364bc1313fe0c40c07b7776d3fd8a8e6fc (diff)
downloadagni-f5e6f56a82e56cfd72a0e2f1ce9b583398636545.tar.gz
agni-f5e6f56a82e56cfd72a0e2f1ce9b583398636545.zip
Fixed warnings all over the code
Diffstat (limited to 'agni.c')
-rw-r--r--agni.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/agni.c b/agni.c
index c637a43..c6644f1 100644
--- a/agni.c
+++ b/agni.c
@@ -159,8 +159,6 @@ server thread
#define TH_CONN_BUF_SZ 1024
int th_start_client(void *data)
{
- //int cmd_id = 1;
- int err;
//mq_cmd *qcmd=NULL; //queue command
int run;
int mq_event;
@@ -449,10 +447,6 @@ int th_start_client(void *data)
//something is sended to cbot
if (token_cmp(itok,1,"PRIVMSG") == 1)
{
- int fret,fret2;
- //char send_back[128];
-
- //PNL();
memset(cmd_buf,0,128);
char *uname = token_new_str(itok,0);
@@ -462,8 +456,6 @@ int th_start_client(void *data)
char *sep = strchr(uname,'!');
uname[sep-uname] = 0x0;
- PNL()
- //if (token_cmp(itok,3,":join") == 1)
if (strncmp(":join",msg,5)==0)
{
//lets check if one more argument is there
@@ -496,9 +488,6 @@ int th_start_client(void *data)
} else
{
//just send to test that thos commands works mate
- //fret2=snprintf(cmd_buf,128,":%s PRIVMSG %s PONGER\r\n",cfg->user,uname);
- //printf("FORMATED [%s]",cmd_buf);
- //fret = write(conn,cmd_buf,fret2);
//create cmd table command and add to table
qcmd = tbl_qcmd_cmd_c();
@@ -645,15 +634,6 @@ int th_event_manager(void *data)
//execution and command table generation
//tble_exec *ecmd = NULL;
tbl_exec *etbl = NULL;
- tble_qcmd *qcmd = NULL;
- tbl_qcmd *qtbl = NULL;
-
- //create execution table
- etbl = tbl_exec_list_c(30);
- if (etbl == NULL)
- {
- PERM();
- }
//load predefined/precompiled command list
{
@@ -685,9 +665,6 @@ int th_event_manager(void *data)
tbl_exec_print_tbl(etbl, TBL_PF_EXEC_ALL);
- //create command table
- qtbl = tbl_qcmd_c(30);//well 30 should be ok right?
-
//config mq
printf("Start event thread\n");
mq = cfg->mq_listen;