This commit is contained in:
Gerolf Ziegenhain 2016-10-04 16:26:49 +02:00
parent b3e2c0fa72
commit 0dbe192f7a

View File

@ -49,21 +49,6 @@ char last_sender[16];
int translate = 1;
int audio_status = 1;
int kbhit (void)
{
struct timeval tv;
fd_set rdfs;
tv.tv_sec = 0;
tv.tv_usec = 0;
FD_ZERO(&rdfs);
FD_SET (STDIN_FILENO, &rdfs);
select (STDIN_FILENO+1, &rdfs, NULL, NULL, &tv);
return FD_ISSET(STDIN_FILENO, &rdfs);
}
/* get sockaddr, IPv4 or IPv6: */
void *get_in_addr(struct sockaddr *sa)