From ba448fd7dd0847cc1ae929b31e6a7e40e8e066ac Mon Sep 17 00:00:00 2001 From: Thomas BERNARD Date: Mon, 17 Mar 2014 15:35:18 +0100 Subject: [PATCH] miniupnpd/testasyncsendto.c: remove warning if struct timeval fields are not long int --- miniupnpd/testasyncsendto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniupnpd/testasyncsendto.c b/miniupnpd/testasyncsendto.c index e413bd7..7006bf2 100644 --- a/miniupnpd/testasyncsendto.c +++ b/miniupnpd/testasyncsendto.c @@ -72,7 +72,7 @@ int test(void) struct timeval timeout; struct timeval now; syslog(LOG_DEBUG, "get_next_scheduled_send : %d next_send=%ld.%06ld", - i, next_send.tv_sec, next_send.tv_usec); + i, (long)next_send.tv_sec, (long)next_send.tv_usec); FD_ZERO(&writefds); max_fd = 0; gettimeofday(&now, NULL); @@ -98,7 +98,7 @@ int test(void) } syslog(LOG_DEBUG, "get_sendto_fds() returned %d", i); syslog(LOG_DEBUG, "select(%d, NULL, xx, NULL, %ld.%06ld)", - max_fd, timeout.tv_sec, timeout.tv_usec); + max_fd, (long)timeout.tv_sec, (long)timeout.tv_usec); i = select(max_fd, NULL, &writefds, NULL, &timeout); if(i < 0) { syslog(LOG_ERR, "select: %m");