diff options
author | Jonathan Rose <jrose@digium.com> | 2012-04-04 18:08:28 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2012-04-04 18:08:28 +0000 |
commit | e96a59acfdbd655045ad8d8292cde674d2236645 (patch) | |
tree | 0adb9e4b51d96b070321db626eea3fd506d04079 /channels | |
parent | 97b2fa8de18777eb31f20e86dd1c31ffa3a0f17b (diff) |
Replace GNU old-style field designator extensions to fix clang warnings
(issue ASTERISK-19540)
Reported by: Makoto Dei
Patches:
clang-gnu-designator.patch uploaded by Makoto Dei (license 5027)
........
Also add from the patch the portion in res_fax_spandsp that didn't apply to 1.8
Merged revisions 361142 from http://svn.asterisk.org/svn/asterisk/branches/1.8
(closes issue ASTERISK-19540)
........
Merged revisions 361143 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@361155 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_iax2.c | 12 | ||||
-rw-r--r-- | channels/chan_sip.c | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 3928ed842..cbc4858ac 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -14036,12 +14036,12 @@ static int iax2_devicestate(const char *data) static struct ast_switch iax2_switch = { - name: "IAX2", - description: "IAX Remote Dialplan Switch", - exists: iax2_exists, - canmatch: iax2_canmatch, - exec: iax2_exec, - matchmore: iax2_matchmore, + .name = "IAX2", + .description = "IAX Remote Dialplan Switch", + .exists = iax2_exists, + .canmatch = iax2_canmatch, + .exec = iax2_exec, + .matchmore = iax2_matchmore, }; /* diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f9fa5512e..f46daf707 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3060,9 +3060,9 @@ static struct sip_registry *registry_addref(struct sip_registry *reg, char *tag) /*! \brief Interface structure with callbacks used to connect to UDPTL module*/ static struct ast_udptl_protocol sip_udptl = { - type: "SIP", - get_udptl_info: sip_get_udptl_peer, - set_udptl_peer: sip_set_udptl_peer, + .type = "SIP", + .get_udptl_info = sip_get_udptl_peer, + .set_udptl_peer = sip_set_udptl_peer, }; static void append_history_full(struct sip_pvt *p, const char *fmt, ...) |