fix a couple of warnings
This commit is contained in:
parent
c41094c2af
commit
32164d27d2
|
@ -367,7 +367,7 @@ static struct nlist list[] = {
|
||||||
/* no support for IPv6 */
|
/* no support for IPv6 */
|
||||||
if ((xip->inp_vflag & INP_IPV6) != 0)
|
if ((xip->inp_vflag & INP_IPV6) != 0)
|
||||||
continue;
|
continue;
|
||||||
syslog(LOG_DEBUG, "%08lx:%hu %08lx:%hu <=> %hu %08lx:%hu",
|
syslog(LOG_DEBUG, "%08lx:%hu %08lx:%hu <=> %u %08lx:%u",
|
||||||
(u_long)inc->inc_laddr.s_addr, ntohs(inc->inc_lport),
|
(u_long)inc->inc_laddr.s_addr, ntohs(inc->inc_lport),
|
||||||
(u_long)inc->inc_faddr.s_addr, ntohs(inc->inc_fport),
|
(u_long)inc->inc_faddr.s_addr, ntohs(inc->inc_fport),
|
||||||
eport, (u_long)ip_addr.s_addr, iport
|
eport, (u_long)ip_addr.s_addr, iport
|
||||||
|
|
|
@ -252,7 +252,7 @@ static int wait_for_stun_responses(int fds[4], unsigned char *transaction_ids[4]
|
||||||
FD_SET(fds[i], &fdset);
|
FD_SET(fds[i], &fdset);
|
||||||
}
|
}
|
||||||
|
|
||||||
syslog(LOG_DEBUG, "%s: waiting %ld secs and %ld usecs", "wait_for_stun_responses", timeout.tv_sec, timeout.tv_usec);
|
syslog(LOG_DEBUG, "%s: waiting %ld secs and %ld usecs", "wait_for_stun_responses", (long)timeout.tv_sec, (long)timeout.tv_usec);
|
||||||
ret = select(max_fd+1, &fdset, NULL, NULL, &timeout);
|
ret = select(max_fd+1, &fdset, NULL, NULL, &timeout);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
if (errno == EINTR)
|
if (errno == EINTR)
|
||||||
|
|
Loading…
Reference in New Issue