Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
2ea18c8b
Commit
2ea18c8b
authored
Oct 15, 2013
by
Simon Morlat
Browse files
fix in dns.c
parent
93fa25a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dns.c
View file @
2ea18c8b
...
...
@@ -844,12 +844,16 @@ static char *dns_strsep(char **sp, const char *delim) {
static
int
dns_poll
(
int
fd
,
short
events
,
int
timeout
)
{
/* For our usage in belle sip, we are called by the main loop when something is to read on the dns socket.
* As a result there is no need to perform a blocking select.
**/
#if 0
fd_set rset, wset;
struct timeval tv = { timeout, 0 };
#if USE_FIXED_NAMESERVERS
return 0;
#endif
if (!events)
return 0;
...
...
@@ -866,7 +870,7 @@ static int dns_poll(int fd, short events, int timeout) {
FD_SET(fd, &wset);
select(fd + 1, &rset, &wset, 0, (timeout >= 0)? &tv : NULL);
#endif
return
0
;
}
/* dns_poll() */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment