]> git.ipfire.org Git - thirdparty/asterisk.git/commit
build: Fix ast_sockaddr initialization to be more portable 60/3060/2
authorGeorge Joseph <gjoseph@digium.com>
Thu, 9 Jun 2016 14:20:33 +0000 (08:20 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 21 Jun 2016 20:06:50 +0000 (15:06 -0500)
commita6610fbe2f0072d57a57d7ebf405e099baeba05b
tree2fb008f3507256fec9a3456003bc4202f592cdcb
parentd9ab222edcf9f2ea86263b205ebf1240a69ff77c
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