Commit d61af04b authored by Ghislain MARY's avatar Ghislain MARY

Fix return type of bctbx_socket().

parent 786e104a
......@@ -101,7 +101,7 @@ struct bctbx_vsocket_api_t {
* @param protocol protocol family i.e AF_INET
* @return Returns a socket file descriptor.
*/
BCTBX_PUBLIC int bctbx_socket(int socket_family, int socket_type, int protocol);
BCTBX_PUBLIC bctbx_socket_t bctbx_socket(int socket_family, int socket_type, int protocol);
/**
* Get the local socket address.
......
......@@ -144,7 +144,7 @@ static bctbx_vsocket_api_t bcvSocket = {
static bctbx_vsocket_api_t *pDefaultvSocket = &bcvSocket;
int bctbx_socket(int socket_family, int socket_type, int protocol){
bctbx_socket_t bctbx_socket(int socket_family, int socket_type, int protocol){
return pDefaultvSocket->pSocketMethods->pFuncSocket( socket_family, socket_type, protocol);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment