1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Polishing: generate more warnings and make code warnings-free.

This commit is contained in:
anozdrin/alik@alik.
2006-11-17 16:45:29 +03:00
parent 8c55f4743d
commit c6cd61a5cc
8 changed files with 39 additions and 17 deletions

View File

@ -86,7 +86,7 @@ private:
int check_connection();
int do_command();
int dispatch_command(enum enum_server_command command,
const char *text, uint len);
const char *text);
};
@ -317,12 +317,12 @@ int Mysql_connection_thread::do_command()
(uchar) *packet;
log_info("connection %d: packet_length=%d, command=%d",
(int) connection_id, (int) packet_length, (int) command);
return dispatch_command(command, packet + 1, packet_length - 1);
return dispatch_command(command, packet + 1);
}
}
int Mysql_connection_thread::dispatch_command(enum enum_server_command command,
const char *packet, uint len)
const char *packet)
{
switch (command) {
case COM_QUIT: // client exit