[asterisk-commits] seanbright: trunk r169116 - /trunk/pbx/pbx_dundi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 16 20:52:30 CST 2009


Author: seanbright
Date: Fri Jan 16 20:52:30 2009
New Revision: 169116

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=169116
Log:
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.

Modified:
    trunk/pbx/pbx_dundi.c

Modified: trunk/pbx/pbx_dundi.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/pbx/pbx_dundi.c?view=diff&rev=169116&r1=169115&r2=169116
==============================================================================
--- trunk/pbx/pbx_dundi.c (original)
+++ trunk/pbx/pbx_dundi.c Fri Jan 16 20:52:30 2009
@@ -4569,14 +4569,13 @@
 	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)




More information about the asterisk-commits mailing list