From 3fb7307ade33c21dce06c6905417a35758fe47fe Mon Sep 17 00:00:00 2001 From: Massimiliano Pinto Date: Wed, 26 Jun 2013 12:13:04 +0200 Subject: [PATCH] Fixed compile warnings --- modules/protocol/mysql_common.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/protocol/mysql_common.c b/modules/protocol/mysql_common.c index 4d1af7618..ffd3a7992 100644 --- a/modules/protocol/mysql_common.c +++ b/modules/protocol/mysql_common.c @@ -26,13 +26,11 @@ #include "mysql_client_server_protocol.h" -static char *version_str = "V1.0.0"; - MySQLProtocol *gw_mysql_init(MySQLProtocol *data); void gw_mysql_close(MySQLProtocol **ptr); -extern gw_read_backend_event(DCB* dcb); -extern gw_write_backend_event(DCB *dcb); +extern int gw_read_backend_event(DCB* dcb); +extern int gw_write_backend_event(DCB *dcb); extern int gw_MySQLWrite_backend(DCB *dcb, GWBUF *queue); extern int gw_error_backend_event(DCB *dcb); @@ -40,8 +38,6 @@ extern int gw_error_backend_event(DCB *dcb); // Initialize mysql protocol struct /////////////////////////////////////// MySQLProtocol *gw_mysql_init(MySQLProtocol *data) { - int rv = -1; - MySQLProtocol *input = NULL; if (input == NULL) {