[asterisk-commits] rizzo: branch rizzo/astobj2 r75582 - /team/rizzo/astobj2/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 18 09:18:26 CDT 2007


Author: rizzo
Date: Wed Jul 18 09:18:25 2007
New Revision: 75582

URL: http://svn.digium.com/view/asterisk?view=rev&rev=75582
Log:
uninitialized globals are initialized to 0 so there is no
need to do it explicitly.


Modified:
    team/rizzo/astobj2/channels/chan_sip.c

Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=75582&r1=75581&r2=75582
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Wed Jul 18 09:18:25 2007
@@ -1388,7 +1388,7 @@
  */
 
 static volatile int sipsock  = -1;			/*!< Main socket for SIP network communication */
-static struct sockaddr_in bindaddr = { 0, };	/*!< The address we bind to */
+static struct sockaddr_in bindaddr;		/*!< The address we bind to */
 
 /*! \brief our (internal) default address/port to put in SIP/SDP messages
  *  internip is initialized picking a suitable address from one of the
@@ -1415,9 +1415,9 @@
  */
 static struct sockaddr_in externip;		/*!< External IP address if we are behind NAT */
 static char externhost[MAXHOSTNAMELEN];		/*!< External host name */
-static time_t externexpire = 0;			/*!< Expiration counter for re-resolving external host name in dynamic DNS */
+static time_t externexpire;			/*!< Expiration counter for re-resolving external host name in dynamic DNS */
 static int externrefresh = 10;
-static struct sockaddr_in stunaddr = { 0, };	/*!< stun server address */
+static struct sockaddr_in stunaddr;		/*!< stun server address */
 
 /*! \brief  List of local networks
  * We store "localnet" addresses from the config file into an access list,




More information about the asterisk-commits mailing list