aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-17 02:52:30 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-17 02:52:30 +0000
commit361ca97bd46dcba6669928c2c940411a5c1df3f8 (patch)
tree8ad5c797541df9b2b997ec1bcdd5eb764b0556e8 /pbx
parentd2601c379ad6c17dba9f647e9df9d69f2138caeb (diff)
Change intializer types. Found while working on asterisk-cpp. I have a new
favorite error message from g++: pbx_dundi.c:4580: sorry, unimplemented: non-trivial designated initializers not supported I like it when compilers are apologetic. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@169116 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_dundi.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index ed4d20e07..517a3e2ea 100644
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -4569,14 +4569,13 @@ static int dundi_matchmore(struct ast_channel *chan, const char *context, const
return dundi_helper(chan, context, exten, priority, data, DUNDI_FLAG_MATCHMORE);
}
-static struct ast_switch dundi_switch =
-{
- name: "DUNDi",
- description: "DUNDi Discovered Dialplan Switch",
- exists: dundi_exists,
- canmatch: dundi_canmatch,
- exec: dundi_exec,
- matchmore: dundi_matchmore,
+static struct ast_switch dundi_switch = {
+ .name = "DUNDi",
+ .description = "DUNDi Discovered Dialplan Switch",
+ .exists = dundi_exists,
+ .canmatch = dundi_canmatch,
+ .exec = dundi_exec,
+ .matchmore = dundi_matchmore,
};
static int set_config(char *config_file, struct sockaddr_in* sin, int reload)