[svn-commits] rmudgett: branch 1.8 r378164 - /branches/1.8/main/channel.c

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


Author: rmudgett
Date: Thu Dec 20 15:38:01 2012
New Revision: 378164

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

Modified:
    branches/1.8/main/channel.c

Modified: branches/1.8/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/channel.c?view=diff&rev=378164&r1=378163&r2=378164
==============================================================================
--- branches/1.8/main/channel.c (original)
+++ branches/1.8/main/channel.c Thu Dec 20 15:38:01 2012
@@ -200,11 +200,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