Fixed compile warnings

This commit is contained in:
Massimiliano Pinto 2013-06-24 13:54:39 +02:00
parent 41ddbbea97
commit 6b0220a468
2 changed files with 3 additions and 2 deletions

View File

@ -70,7 +70,6 @@ static void signal_set (int sig, void (*handler)(int)) {
}
int handle_event_errors(DCB *dcb) {
MySQLProtocol *protocol = DCB_PROTOCOL(dcb, MySQLProtocol);
fprintf(stderr, "#### Handle error function for [%i] is [%s]\n", dcb->state, gw_dcb_state2string(dcb->state));
@ -129,7 +128,6 @@ int handle_event_errors(DCB *dcb) {
}
int handle_event_errors_backend(DCB *dcb) {
MySQLProtocol *protocol = DCB_PROTOCOL(dcb, MySQLProtocol);
fprintf(stderr, "#### Handle Backend error function for %i\n", dcb->fd);
@ -162,6 +160,8 @@ int handle_event_errors_backend(DCB *dcb) {
fprintf(stderr, "Freeing backend MySQL conn %p, %p\n", dcb->protocol, &dcb->protocol);
}
}
return 0;
}
// main function

View File

@ -49,6 +49,7 @@
#include "mysql_protocol.h"
#include "dcb.h"
int gw_daemonize(void);
int do_read_dcb(DCB *dcb);
int handle_event_errors(DCB *dcb);
int handle_event_errors_backend(DCB *dcb);