From fe02f96c7744b71f4a5a0d864f4676862bcc7518 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Thu, 20 Dec 2012 21:38:01 +0000 Subject: [PATCH] Give the causes[] a struct name. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@378164 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/channel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/channel.c b/main/channel.c index 839397640e..00f3bbb342 100644 --- a/main/channel.c +++ b/main/channel.c @@ -200,11 +200,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" }, -- 2.47.3