[Freeswitch-svn] [commit] r12305 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/sresolv

FreeSWITCH SVN mikej at freeswitch.org
Thu Feb 26 10:40:20 PST 2009


Author: mikej
Date: Thu Feb 26 12:40:20 2009
New Revision: 12305

Log:
Thu Feb 26 09:39:43 CST 2009  Michael Jerris <mike at jerris.com>
  * sres_sip.c: fix warnings



Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres_sip.c

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Thu Feb 26 12:40:20 2009
@@ -1 +1 @@
-Thu Feb 26 12:38:20 CST 2009
+Thu Feb 26 12:40:06 CST 2009

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres_sip.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres_sip.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres_sip.c	Thu Feb 26 12:40:20 2009
@@ -1535,9 +1535,10 @@
   char const *target = srs->srs_target;
   su_addrinfo_t ai[1];
   su_sockaddr_t su[1];
+  char buffer[64];
   int i;
 
-  memset(ai, 0, (sizeof ai));
+  memset(ai, 0, (sizeof ai)); (void)buffer;
 
   if (host_is_ip4_address(target)) {
     ai->ai_addr = memset(su, 0, (sizeof su->su_sin));
@@ -1559,7 +1560,6 @@
     }
   }
   else if (host_is_ip6_reference(target)) {
-    char buffer[64];
     size_t len = strlen(target) - 2;
 
     ai->ai_addr = memset(su, 0, (sizeof su->su_sin6));



More information about the Freeswitch-svn mailing list