Sannis/node-mysql-libmysqlclient — pull request #97 by urbis (2011-10-17 04:08:55+00:00)
Title: Fixed invalid conversion from void to int errors

Changed several methods to return int instead of void to fix the following errors
(compiled on Ubuntu - g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3):

../src/mysql_bindings_connection.cc: In static member function ‘static v8::Handle MysqlConnection::Connect(const v8::Arguments&)’:
../src/mysql_bindings_connection.cc:522: error: invalid conversion from ‘void (*)(eio_req*)’ to ‘int (*)(eio_req*)’
../src/mysql_bindings_connection.cc:522: error: initializing argument 1 of ‘eio_req* eio_custom(int (*)(eio_req*), int, int (*)(eio_req*), void*)’
../src/mysql_bindings_connection.cc: In static member function ‘static v8::Handle MysqlConnection::Query(const v8::Arguments&)’:
../src/mysql_bindings_connection.cc:1177: error: invalid conversion from ‘void (*)(eio_req*)’ to ‘int (*)(eio_req*)’
../src/mysql_bindings_connection.cc:1177: error: initializing argument 1 of ‘eio_req* eio_custom(int (*)(eio_req*), int, int (*)(eio_req*), void*)’

../src/mysql_bindings_result.cc: In static member function ‘static v8::Handle MysqlResult::FetchAll(const v8::Arguments&)’:
../src/mysql_bindings_result.cc:494: error: invalid conversion from ‘void (*)(eio_req*)’ to ‘int (*)(eio_req*)’
../src/mysql_bindings_result.cc:494: error: initializing argument 1 of ‘eio_req* eio_custom(int (*)(eio_req*), int, int (*)(eio_req*), void*)’