Module: sip-router Branch: master Commit: 4bdbca2dc4237fa7a08fe61c4ebe828ec7c92274 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4bdbca2d...
Author: Juha Heinanen jh@tutpro.com Committer: Juha Heinanen jh@tutpro.com Date: Thu Feb 2 04:16:57 2012 +0200
core/ser_stun.c: fixed compile warnings
---
ser_stun.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ser_stun.c b/ser_stun.c index 0abbad3..86eab5a 100644 --- a/ser_stun.c +++ b/ser_stun.c @@ -766,9 +766,11 @@ int stun_add_address_attr(struct stun_msg* res, int do_xor) { struct stun_attr attr; - UINT_T id[IP_ADDR]; int ip_struct_len; +#ifdef USE_IPV6 + UINT_T id[IP_ADDR]; int i; +#endif /* USE_IPV6 */ ip_struct_len = 0; attr.type = htons(type);