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:
parent
a93a74daed
commit
588ddda1fe
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user