mirror of https://github.com/wb2osz/direwolf.git
Fix Linux build.
This commit is contained in:
parent
8683ddcbd6
commit
7ac1262fdf
|
@ -598,20 +598,20 @@ static THREAD_F connect_listen_thread (void *arg)
|
|||
|
||||
text_color_set(DW_COLOR_INFO);
|
||||
if (kps->chan == -1) {
|
||||
dw_printf("Ready to accept KISS TCP client application %d on port %s ...\n", client, tcp_port_str);
|
||||
dw_printf("Ready to accept KISS TCP client application %d on port %d ...\n", client, kps->tcp_port);
|
||||
}
|
||||
else {
|
||||
dw_printf("Ready to accept KISS TCP client application %d on port %s (radio channel %d) ...\n", client, tcp_port_str, kps->chan);
|
||||
dw_printf("Ready to accept KISS TCP client application %d on port %d (radio channel %d) ...\n", client, kps->tcp_port, kps->chan);
|
||||
}
|
||||
|
||||
kps->client_sock[client] = accept(listen_sock, (struct sockaddr*)(&sockaddr),&sockaddr_size);
|
||||
|
||||
text_color_set(DW_COLOR_INFO);
|
||||
if (kps->chan == -1) {
|
||||
dw_printf("\nAttached to KISS TCP client application %d on port %s ...\n\n", client, tcp_port_str);
|
||||
dw_printf("\nAttached to KISS TCP client application %d on port %d ...\n\n", client, kps->tcp_port);
|
||||
}
|
||||
else {
|
||||
dw_printf("\nAttached to KISS TCP client application %d on port %s (radio channel %d) ...\n\n", client, tcp_port_str, kps->chan);
|
||||
dw_printf("\nAttached to KISS TCP client application %d on port %d (radio channel %d) ...\n\n", client, kps->tcp_port, kps->chan);
|
||||
}
|
||||
|
||||
// Reset the state and buffer.
|
||||
|
@ -767,7 +767,7 @@ void kissnet_send_rec_packet (int chan, int kiss_cmd, unsigned char *fbuf, int f
|
|||
err = SOCK_SEND (kps->client_sock[client], kiss_buff, kiss_len);
|
||||
if (err <= 0) {
|
||||
text_color_set(DW_COLOR_ERROR);
|
||||
dw_printf ("\nError %d sending message to KISS client application %d on port %d. Closing connection.\n\n", WSAGetLastError(), client, kps->tcp_port);
|
||||
dw_printf ("\nError %d sending message to KISS client application %d on port %d. Closing connection.\n\n", err, client, kps->tcp_port);
|
||||
close (kps->client_sock[client]);
|
||||
kps->client_sock[client] = -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue