[asterisk-commits] jrose: branch 1.8 r361142 - in /branches/1.8: addons/ apps/ channels/ main/ pbx/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Apr 4 11:29:23 CDT 2012
Author: jrose
Date: Wed Apr 4 11:29:18 2012
New Revision: 361142
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=361142
Log:
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)
Modified:
branches/1.8/addons/chan_ooh323.c
branches/1.8/apps/app_externalivr.c
branches/1.8/apps/app_milliwatt.c
branches/1.8/channels/chan_iax2.c
branches/1.8/channels/chan_sip.c
branches/1.8/main/app.c
branches/1.8/main/channel.c
branches/1.8/pbx/pbx_loopback.c
branches/1.8/pbx/pbx_realtime.c
Modified: branches/1.8/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/addons/chan_ooh323.c?view=diff&rev=361142&r1=361141&r2=361142
==============================================================================
--- branches/1.8/addons/chan_ooh323.c (original)
+++ branches/1.8/addons/chan_ooh323.c Wed Apr 4 11:29:18 2012
@@ -124,9 +124,9 @@
};
static struct ast_udptl_protocol ooh323_udptl = {
- type: "H323",
- get_udptl_info: ooh323_get_udptl_peer,
- set_udptl_peer: ooh323_set_udptl_peer,
+ .type = "H323",
+ .get_udptl_info = ooh323_get_udptl_peer,
+ .set_udptl_peer = ooh323_set_udptl_peer,
};
Modified: branches/1.8/apps/app_externalivr.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_externalivr.c?view=diff&rev=361142&r1=361141&r2=361142
==============================================================================
--- branches/1.8/apps/app_externalivr.c (original)
+++ branches/1.8/apps/app_externalivr.c Wed Apr 4 11:29:18 2012
@@ -293,9 +293,9 @@
static struct ast_generator gen =
{
- alloc: gen_alloc,
- release: gen_release,
- generate: gen_generate,
+ .alloc = gen_alloc,
+ .release = gen_release,
+ .generate = gen_generate,
};
static void ast_eivr_getvariable(struct ast_channel *chan, char *data, char *outbuf, int outbuflen)
Modified: branches/1.8/apps/app_milliwatt.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_milliwatt.c?view=diff&rev=361142&r1=361141&r2=361142
==============================================================================
--- branches/1.8/apps/app_milliwatt.c (original)
+++ branches/1.8/apps/app_milliwatt.c Wed Apr 4 11:29:18 2012
@@ -117,9 +117,9 @@
}
static struct ast_generator milliwattgen = {
- alloc: milliwatt_alloc,
- release: milliwatt_release,
- generate: milliwatt_generate,
+ .alloc = milliwatt_alloc,
+ .release = milliwatt_release,
+ .generate = milliwatt_generate,
};
static int old_milliwatt_exec(struct ast_channel *chan)
Modified: branches/1.8/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_iax2.c?view=diff&rev=361142&r1=361141&r2=361142
==============================================================================
--- branches/1.8/channels/chan_iax2.c (original)
+++ branches/1.8/channels/chan_iax2.c Wed Apr 4 11:29:18 2012
@@ -14023,12 +14023,12 @@
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,
};
/*
Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=361142&r1=361141&r2=361142
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Wed Apr 4 11:29:18 2012
@@ -3038,9 +3038,9 @@
/*! \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, ...)
Modified: branches/1.8/main/app.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/app.c?view=diff&rev=361142&r1=361141&r2=361142
==============================================================================
--- branches/1.8/main/app.c (original)
+++ branches/1.8/main/app.c Wed Apr 4 11:29:18 2012
@@ -523,9 +523,9 @@
static struct ast_generator linearstream =
{
- alloc: linear_alloc,
- release: linear_release,
- generate: linear_generator,
+ .alloc = linear_alloc,
+ .release = linear_release,
+ .generate = linear_generator,
};
int ast_linear_stream(struct ast_channel *chan, const char *filename, int fd, int allowoverride)
Modified: branches/1.8/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/channel.c?view=diff&rev=361142&r1=361141&r2=361142
==============================================================================
--- branches/1.8/main/channel.c (original)
+++ branches/1.8/main/channel.c Wed Apr 4 11:29:18 2012
@@ -7706,9 +7706,9 @@
}
static struct ast_generator tonepair = {
- alloc: tonepair_alloc,
- release: tonepair_release,
- generate: tonepair_generator,
+ .alloc = tonepair_alloc,
+ .release = tonepair_release,
+ .generate = tonepair_generator,
};
int ast_tonepair_start(struct ast_channel *chan, int freq1, int freq2, int duration, int vol)
Modified: branches/1.8/pbx/pbx_loopback.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/pbx/pbx_loopback.c?view=diff&rev=361142&r1=361141&r2=361142
==============================================================================
--- branches/1.8/pbx/pbx_loopback.c (original)
+++ branches/1.8/pbx/pbx_loopback.c Wed Apr 4 11:29:18 2012
@@ -163,12 +163,12 @@
static struct ast_switch loopback_switch =
{
- name: "Loopback",
- description: "Loopback Dialplan Switch",
- exists: loopback_exists,
- canmatch: loopback_canmatch,
- exec: loopback_exec,
- matchmore: loopback_matchmore,
+ .name = "Loopback",
+ .description = "Loopback Dialplan Switch",
+ .exists = loopback_exists,
+ .canmatch = loopback_canmatch,
+ .exec = loopback_exec,
+ .matchmore = loopback_matchmore,
};
static int unload_module(void)
Modified: branches/1.8/pbx/pbx_realtime.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/pbx/pbx_realtime.c?view=diff&rev=361142&r1=361141&r2=361142
==============================================================================
--- branches/1.8/pbx/pbx_realtime.c (original)
+++ branches/1.8/pbx/pbx_realtime.c Wed Apr 4 11:29:18 2012
@@ -388,12 +388,12 @@
static struct ast_switch realtime_switch =
{
- name: "Realtime",
- description: "Realtime Dialplan Switch",
- exists: realtime_exists,
- canmatch: realtime_canmatch,
- exec: realtime_exec,
- matchmore: realtime_matchmore,
+ .name = "Realtime",
+ .description = "Realtime Dialplan Switch",
+ .exists = realtime_exists,
+ .canmatch = realtime_canmatch,
+ .exec = realtime_exec,
+ .matchmore = realtime_matchmore,
};
static int unload_module(void)
More information about the asterisk-commits
mailing list