~diego-fmpwizard/mysql-proxy/bug-43424

« back to all changes in this revision

Viewing changes to plugins/proxy/proxy-plugin.c

  • Committer: jan at mysql
  • Date: 2009-02-23 23:55:54 UTC
  • Revision ID: jan@mysql.com-20090223235554-tkmvec19717snbxk
fixed warning about missing declaration and unused variables

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
 
136
136
#include "sys-pedantic.h"
137
137
#include "network-injection.h"
 
138
#include "network-injection-lua.h"
138
139
#include "network-backend.h"
139
140
#include "glib-ext.h"
140
141
#include "lua-env.h"
345
346
        network_mysqld_lua_stmt_ret ret = PROXY_NO_DECISION; /* send what the server gave us */
346
347
#ifdef HAVE_LUA_H
347
348
        network_mysqld_con_lua_t *st = con->plugin_con_state;
348
 
        network_socket   *recv_sock = con->server;
349
 
        network_socket   *send_sock = con->client;
350
349
 
351
350
        lua_State *L;
352
351
 
899
898
static network_mysqld_lua_stmt_ret proxy_lua_read_query(network_mysqld_con *con) {
900
899
        network_mysqld_con_lua_t *st = con->plugin_con_state;
901
900
        char command = -1;
902
 
        injection *inj;
903
901
        network_socket *recv_sock = con->client;
904
902
        GList   *chunk  = recv_sock->recv_queue->chunks->head;
905
903
        GString *packet = chunk->data;
1224
1222
        network_socket *recv_sock, *send_sock;
1225
1223
        network_mysqld_con_lua_t *st = con->plugin_con_state;
1226
1224
        injection *inj = NULL;
1227
 
        chassis_plugin_config *config = con->config;
1228
 
        gint8 status;
1229
1225
 
1230
1226
        recv_sock = con->server;
1231
1227
        send_sock = con->client;