wip
This commit is contained in:
parent
b3e2c0fa72
commit
0dbe192f7a
15
src/irmc.c
15
src/irmc.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user