1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

socket: socket_base_exists_socket returns bool

Adapt the prototype to the actual used return value.
This commit is contained in:
Oleg Hahm 2014-12-02 14:58:44 +01:00
parent a93a74daed
commit 588ddda1fe
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ void socket_base_print_internal_socket(socket_internal_t *current_socket_interna
printf("\n--------------------------\n");
}
int socket_base_exists_socket(int socket)
bool socket_base_exists_socket(int socket)
{
if (socket < 1) {
return false;

View File

@ -96,7 +96,7 @@ extern "C" {
socket_internal_t *socket_base_get_socket(int s);
uint16_t socket_base_get_free_source_port(uint8_t protocol);
int socket_base_exists_socket(int socket);
bool socket_base_exists_socket(int socket);
int socket_base_socket(int domain, int type, int protocol);
void socket_base_print_sockets(void);