fix compile

This commit is contained in:
Matthias Ringwald 2016-03-29 22:05:00 +02:00
parent 47fd1184b0
commit 9490bce5e8
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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