mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-12 10:13:43 +00:00
fix compile
This commit is contained in:
parent
47fd1184b0
commit
9490bce5e8
@ -85,7 +85,7 @@ static int socket_packet_handler(connection_t *connection, uint16_t packet_type,
|
||||
// init BTstack library
|
||||
int bt_open(void){
|
||||
|
||||
socket_connection_int();
|
||||
socket_connection_init();
|
||||
|
||||
socket_connection_register_packet_callback(socket_packet_handler);
|
||||
|
||||
|
@ -1959,7 +1959,7 @@ int main (int argc, char * const * argv){
|
||||
// handle SIGTERM - suggested for launchd
|
||||
signal(SIGTERM, daemon_sigint_handler);
|
||||
|
||||
socket_connection_int();
|
||||
socket_connection_init();
|
||||
|
||||
btstack_control_t * control = NULL;
|
||||
void * config;
|
||||
|
@ -611,7 +611,7 @@ void socket_connection_init(void){
|
||||
// just ignore broken sockets - NO_SO_SIGPIPE
|
||||
#ifndef _WIN32
|
||||
sig_t result = signal(SIGPIPE, SIG_IGN);
|
||||
if (result)}{
|
||||
if (result){
|
||||
log_error("socket_connection_init: failed to ignore SIGPIPE, error: %s", strerror(errno));
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user