diff options
author | Filippo Della Betta <filippo.dellabetta@telecomitalia.it> | 2012-02-17 11:49:26 +0100 |
---|---|---|
committer | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2012-02-17 18:46:38 -0500 |
commit | 0cdef497a3d9d99506029d470365179386a8835a (patch) | |
tree | f8f157765fce6392fab3831d513cd23acfb9fa81 | |
parent | 090a8aa15860a5417b4de4e3b4db145cea76e734 (diff) |
Fixed warnings on Visual Studio platform
-rw-r--r-- | agent/address.c | 3 | ||||
-rw-r--r-- | stun/usages/timer.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/agent/address.c b/agent/address.c index 374ca6a..ca2af66 100644 --- a/agent/address.c +++ b/agent/address.c @@ -144,7 +144,8 @@ nice_address_set_ipv6 (NiceAddress *addr, const guchar *addr_ipv6) addr->s.ip6.sin6_len = sizeof (addr->sa.ip6); #endif 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; } diff --git a/stun/usages/timer.c b/stun/usages/timer.c index e5e70e6..ce711c2 100644 --- a/stun/usages/timer.c +++ b/stun/usages/timer.c @@ -69,7 +69,7 @@ static void stun_gettime (struct timeval *now) *time64 -= (unsigned long long) 116444736000000000; *time64 /= 10; - now->tv_sec = *time64 / 1000000; + now->tv_sec = (long)(*time64 / 1000000); now->tv_usec = *time64 % 1000000; #else #if defined (_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK >= 0) |