]> git.ipfire.org Git - thirdparty/asterisk.git/commit
build: Fix ast_sockaddr initialization to be more portable 79/2979/2
authorGeorge Joseph <gjoseph@digium.com>
Thu, 9 Jun 2016 14:20:33 +0000 (08:20 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 9 Jun 2016 14:50:00 +0000 (09:50 -0500)
commita99ddc6a0d2b9075c2cc436a6770c8ac889f5286
tree7c9b835eb9ed843ffeb164b8df7c4833db1aec8a
parentbd3b6e9f193c7f07d86070df4866a4f5cbd82055
build:  Fix ast_sockaddr initialization to be more portable

A change to glibc 2.22 changed the order of the sockadddr_storage
members which caused the places where we do an initialization of
ast_sockaddr with '{ { 0, 0, } }' to fail compilation.  Those
initializers (which we shouldn't have been using anyway) have been
replaced with memsets.

Change-Id: Idd1b3b320903d8771bfe221f0b015685de628fa4
channels/chan_sip.c
tests/test_netsock2.c