diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-12-20 21:51:03 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-12-20 21:51:03 +0000 |
commit | 255d82aae35f6057133ebe51aa03f7e341d53961 (patch) | |
tree | 83f1895412b52891449bab4b00564d7fc30e8ed2 /main/channel.c | |
parent | dec9ee2f042bcddb38a9393c95a7a79e4cb2e2c2 (diff) |
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
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c index 7ccdaf557..38d11b1c0 100644 --- a/main/channel.c +++ b/main/channel.c @@ -156,11 +156,13 @@ static struct ao2_container *channels; * * \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" }, |