From 3e3c1af21134761caae21c0b8148e4e0719678b5 Mon Sep 17 00:00:00 2001 From: VilhoRaatikka Date: Mon, 30 Jun 2014 13:43:25 +0300 Subject: [PATCH] Clean up --- server/modules/protocol/mysql_backend.c | 5 ----- server/modules/protocol/mysql_client.c | 2 -- 2 files changed, 7 deletions(-) diff --git a/server/modules/protocol/mysql_backend.c b/server/modules/protocol/mysql_backend.c index 8a29d12b8..255b205c1 100644 --- a/server/modules/protocol/mysql_backend.c +++ b/server/modules/protocol/mysql_backend.c @@ -754,7 +754,6 @@ static int gw_error_backend_event(DCB *dcb) void* rsession; ROUTER_OBJECT* router; ROUTER* router_instance; - int rc = 0; GWBUF* errbuf; bool succp; @@ -909,7 +908,6 @@ gw_backend_hangup(DCB *dcb) void* rsession; ROUTER_OBJECT* router; ROUTER* router_instance; - int rc = 0; bool succp; GWBUF* errbuf; @@ -1228,7 +1226,6 @@ static GWBUF* process_response_data ( while (nbytes_to_process != 0) { mysql_server_cmd_t srvcmd; - GWBUF* sparebuf; bool succp; srvcmd = protocol_get_srv_command(p, false); @@ -1285,8 +1282,6 @@ static GWBUF* process_response_data ( */ else /*< nbytes_left < nbytes_to_process */ { - size_t len = GWBUF_LENGTH(readbuf); - nbytes_to_process -= nbytes_left; /** Move the prefix of the buffer to outbuf from redbuf */ diff --git a/server/modules/protocol/mysql_client.c b/server/modules/protocol/mysql_client.c index 037cb0522..7da257b4b 100644 --- a/server/modules/protocol/mysql_client.c +++ b/server/modules/protocol/mysql_client.c @@ -1290,7 +1290,6 @@ return_rc: static int gw_error_client_event( DCB* dcb) { - int rc; SESSION* session; CHK_DCB(dcb); @@ -1363,7 +1362,6 @@ gw_client_close(DCB *dcb) static int gw_client_hangup_event(DCB *dcb) { - int rc; SESSION* session; CHK_DCB(dcb);