[asterisk-commits] simon.perreault: branch group/v6-new r273901 - /team/group/v6-new/main/http.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 5 09:18:30 CDT 2010
Author: simon.perreault
Date: Mon Jul 5 09:18:24 2010
New Revision: 273901
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273901
Log:
Just call ast_sockaddr_set_port()
Modified:
team/group/v6-new/main/http.c
Modified: team/group/v6-new/main/http.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/main/http.c?view=diff&rev=273901&r1=273900&r2=273901
==============================================================================
--- team/group/v6-new/main/http.c (original)
+++ team/group/v6-new/main/http.c Mon Jul 5 09:18:24 2010
@@ -1040,10 +1040,8 @@
} else if (!strcasecmp(v->name, "enablestatic")) {
newenablestatic = ast_true(v->value);
} else if (!strcasecmp(v->name, "bindport")) {
- ast_sockaddr_to_sin(&http_desc.local_address,
- &tmp);
- tmp.sin_port = htons(atoi(v->value));
- ast_sockaddr_from_sin(&http_desc.local_address, &tmp);
+ ast_sockaddr_set_port(&http_desc.local_address,
+ atoi(v->value));
} else if (!strcasecmp(v->name, "bindaddr")) {
if ((hp = ast_gethostbyname(v->value, &ahp))) {
ast_sockaddr_to_sin(&http_desc.local_address,
More information about the asterisk-commits
mailing list