[asterisk-commits] russell: branch russell/events r62289 - /team/russell/events/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Apr 28 13:37:47 MST 2007


Author: russell
Date: Sat Apr 28 15:37:47 2007
New Revision: 62289

URL: http://svn.digium.com/view/asterisk?view=rev&rev=62289
Log:
remove a couple of unneeded variables

Modified:
    team/russell/events/channels/chan_iax2.c

Modified: team/russell/events/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/team/russell/events/channels/chan_iax2.c?view=diff&rev=62289&r1=62288&r2=62289
==============================================================================
--- team/russell/events/channels/chan_iax2.c (original)
+++ team/russell/events/channels/chan_iax2.c Sat Apr 28 15:37:47 2007
@@ -8577,8 +8577,6 @@
 	int maskfound = 0;
 	int found = 0;
 	int firstpass = 1;
-	const char *host = NULL;
-	const char *port = NULL;
 
 	AST_LIST_LOCK(&peers);
 	if (!temponly) {
@@ -8697,7 +8695,6 @@
 					}
 					if (!peer->addr.sin_port)
 						peer->addr.sin_port = htons(IAX_DEFAULT_PORTNO);
-					host = ast_strdupa(v->value);
 				}
 				if (!maskfound)
 					inet_aton("255.255.255.255", &peer->mask);
@@ -8726,7 +8723,6 @@
 					peer->defaddr.sin_port = htons(atoi(v->value));
 				else
 					peer->addr.sin_port = htons(atoi(v->value));
-				port = ast_strdupa(v->value);
 			} else if (!strcasecmp(v->name, "username")) {
 				ast_string_field_set(peer, username, v->value);
 			} else if (!strcasecmp(v->name, "allow")) {



More information about the asterisk-commits mailing list