]> git.ipfire.org Git - thirdparty/asterisk.git/commit
build: Fix ast_sockaddr initialization to be more portable 62/3262/2
authorGeorge Joseph <gjoseph@digium.com>
Thu, 9 Jun 2016 14:20:33 +0000 (08:20 -0600)
committerJoshua Colp <jcolp@digium.com>
Thu, 21 Jul 2016 12:35:28 +0000 (07:35 -0500)
commit9937f60ba78b593091bcb228308054cc0e32c5f4
tree9878133108a6bba387f6c640148a69b2ba5dc4a3
parentabe901e682b8b947d2beb03e757d7c94a5f5041b
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
(cherry picked from commit fd5467ce01643e51f0f80c07af0098ab49591947)
channels/chan_sip.c
tests/test_netsock2.c