Skip to content
Browse files

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)
  • Loading branch information...
1 parent ad957e6 commit b96b741266dc67c6ef4a426c61fdc19eec377ebe jrose committed Apr 4, 2012
Showing with 36 additions and 36 deletions.
  1. +3 −3 addons/chan_ooh323.c
  2. +3 −3 apps/app_externalivr.c
  3. +3 −3 apps/app_milliwatt.c
  4. +6 −6 channels/chan_iax2.c
  5. +3 −3 channels/chan_sip.c
  6. +3 −3 main/app.c
  7. +3 −3 main/channel.c
  8. +6 −6 pbx/pbx_loopback.c
  9. +6 −6 pbx/pbx_realtime.c
View
6 addons/chan_ooh323.c
@@ -124,9 +124,9 @@ static struct ast_rtp_glue ooh323_rtp = {
};
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,
};
View
6 apps/app_externalivr.c
@@ -293,9 +293,9 @@ static int gen_generate(struct ast_channel *chan, void *data, int len, int sampl
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)
View
6 apps/app_milliwatt.c
@@ -117,9 +117,9 @@ static int milliwatt_generate(struct ast_channel *chan, void *data, int len, int
}
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)
View
12 channels/chan_iax2.c
@@ -14023,12 +14023,12 @@ static int iax2_devicestate(void *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,
};
/*
View
6 channels/chan_sip.c
@@ -3038,9 +3038,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, ...)
View
6 main/app.c
@@ -523,9 +523,9 @@ static void *linear_alloc(struct ast_channel *chan, void *params)
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)
View
6 main/channel.c
@@ -7706,9 +7706,9 @@ static int tonepair_generator(struct ast_channel *chan, void *data, int len, int
}
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)
View
12 pbx/pbx_loopback.c
@@ -163,12 +163,12 @@ static int loopback_matchmore(struct ast_channel *chan, const char *context, con
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)
View
12 pbx/pbx_realtime.c
@@ -388,12 +388,12 @@ static int realtime_matchmore(struct ast_channel *chan, const char *context, con
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)

0 comments on commit b96b741

Please sign in to comment.
Something went wrong with that request. Please try again.