[asterisk-commits] rmudgett: branch 11 r378165 - in /branches/11: ./ main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 20 15:44:17 CST 2012


Author: rmudgett
Date: Thu Dec 20 15:44:13 2012
New Revision: 378165

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

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

Modified:
    branches/11/   (props changed)
    branches/11/main/channel.c

Propchange: branches/11/
------------------------------------------------------------------------------
--- branch-1.8-merged (original)
+++ branch-1.8-merged Thu Dec 20 15:44:13 2012
@@ -1,1 +1,1 @@
-/branches/1.8:1-378147
+/branches/1.8:1-378147,378164

Modified: branches/11/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/channel.c?view=diff&rev=378165&r1=378164&r2=378165
==============================================================================
--- branches/11/main/channel.c (original)
+++ branches/11/main/channel.c Thu Dec 20 15:44:13 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 asterisk-commits mailing list