fix a couple of warnings

This commit is contained in:
Thomas Bernard 2020-11-02 00:26:13 +01:00
parent c41094c2af
commit 32164d27d2
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)