Fix silly mistakes.

This commit is contained in:
counterpoint
2016-02-22 11:16:51 +00:00
parent 5077933e41
commit ef8a20cceb
2 changed files with 6 additions and 1 deletions

View File

@ -33,6 +33,10 @@
*/ */
#include <gw_protocol.h> #include <gw_protocol.h>
#include <openssl/crypto.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/dh.h>
struct dcb; struct dcb;

View File

@ -81,6 +81,7 @@ static int gw_client_hangup_event(DCB *dcb);
static int mysql_send_ok(DCB *dcb, int packet_number, int in_affected_rows, const char* mysql_message); static int mysql_send_ok(DCB *dcb, int packet_number, int in_affected_rows, const char* mysql_message);
static int MySQLSendHandshake(DCB* dcb); static int MySQLSendHandshake(DCB* dcb);
static int route_by_statement(SESSION *, GWBUF **); static int route_by_statement(SESSION *, GWBUF **);
static void mysql_client_auth_error_handling(DCB *dcb, int auth_val);
extern char* create_auth_fail_str(char *username, char *hostaddr, char *sha1, char *db,int); extern char* create_auth_fail_str(char *username, char *hostaddr, char *sha1, char *db,int);
/* /*
@ -806,7 +807,7 @@ return_rc:
* @param auth_val The type of authentication failure * @param auth_val The type of authentication failure
* @note Authentication status codes are defined in mysql_client_server_protocol.h * @note Authentication status codes are defined in mysql_client_server_protocol.h
*/ */
void static void
mysql_client_auth_error_handling(DCB *dcb, int auth_val) mysql_client_auth_error_handling(DCB *dcb, int auth_val)
{ {
int packet_number, message_len; int packet_number, message_len;