[svn-commits] rmudgett: trunk r378166 - in /trunk: ./ main/channel.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Dec 20 15:51:07 CST 2012


Author: rmudgett
Date: Thu Dec 20 15:51:03 2012
New Revision: 378166

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=378166
Log:
Give the causes[] a struct name.
........

Merged revisions 378164 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 378165 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    trunk/   (props changed)
    trunk/main/channel.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: trunk/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/channel.c?view=diff&rev=378166&r1=378165&r2=378166
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Thu Dec 20 15:51:03 2012
@@ -156,11 +156,13 @@
  *
  * \ref causes.h
 */
-static const struct {
+struct causes_map {
 	int cause;
 	const char *name;
 	const char *desc;
-} causes[] = {
+};
+
+static const struct causes_map causes[] = {
 	{ AST_CAUSE_UNALLOCATED, "UNALLOCATED", "Unallocated (unassigned) number" },
 	{ AST_CAUSE_NO_ROUTE_TRANSIT_NET, "NO_ROUTE_TRANSIT_NET", "No route to specified transmit network" },
 	{ AST_CAUSE_NO_ROUTE_DESTINATION, "NO_ROUTE_DESTINATION", "No route to destination" },




More information about the svn-commits mailing list