Commit 0cdef497 authored by Filippo Della Betta's avatar Filippo Della Betta Committed by Youness Alaoui

Fixed warnings on Visual Studio platform

parent 090a8aa1
...@@ -144,7 +144,8 @@ nice_address_set_ipv6 (NiceAddress *addr, const guchar *addr_ipv6) ...@@ -144,7 +144,8 @@ nice_address_set_ipv6 (NiceAddress *addr, const guchar *addr_ipv6)
addr->s.ip6.sin6_len = sizeof (addr->sa.ip6); addr->s.ip6.sin6_len = sizeof (addr->sa.ip6);
#endif #endif
memcpy (addr->s.ip6.sin6_addr.s6_addr, addr_ipv6, 16); memcpy (addr->s.ip6.sin6_addr.s6_addr, addr_ipv6, 16);
addr->s.ip6.sin6_port = addr->s.ip6.sin6_scope_id = 0; addr->s.ip6.sin6_port = 0;
addr->s.ip6.sin6_scope_id = 0;
} }
......
...@@ -69,7 +69,7 @@ static void stun_gettime (struct timeval *now) ...@@ -69,7 +69,7 @@ static void stun_gettime (struct timeval *now)
*time64 -= (unsigned long long) 116444736000000000; *time64 -= (unsigned long long) 116444736000000000;
*time64 /= 10; *time64 /= 10;
now->tv_sec = *time64 / 1000000; now->tv_sec = (long)(*time64 / 1000000);
now->tv_usec = *time64 % 1000000; now->tv_usec = *time64 % 1000000;
#else #else
#if defined (_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK >= 0) #if defined (_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK >= 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment