Commit 1e40c188 authored by Sandrine Avakian's avatar Sandrine Avakian

Missing prototype for bctbx_socket_error.

parent 0a3ce627
......@@ -171,6 +171,12 @@ BCTBX_PUBLIC int bctbx_bind(bctbx_socket_t sockfd, const struct sockaddr *addres
*/
BCTBX_PUBLIC int bctbx_connect(bctbx_socket_t sockfd, const struct sockaddr *address, socklen_t address_len);
/**
* [bctbx_socket_error description]
* @param err [description]
* @return [description]
*/
BCTBX_PUBLIC char* bctbx_socket_error(int err);
/**
* Set default vsocket pointer pDefault to my_vsocket_api.
......
......@@ -119,8 +119,8 @@ int bctbx_shutdown(bctbx_socket_t sock, int how){
return pDefaultvSocket->pSocketMethods->pFuncShutdown(sock, how);
}
char* bctbx_socket_error(int errno){
return pDefaultvSocket->pSocketMethods->pFuncGetError(errno);
char* bctbx_socket_error(int err){
return pDefaultvSocket->pSocketMethods->pFuncGetError(err);
}
void bctbx_vsocket_api_set_default(bctbx_vsocket_api_t *my_vsocket_api) {
......
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