diff options
author | bbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-11 18:09:35 +0000 |
---|---|---|
committer | bbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-11 18:09:35 +0000 |
commit | 8e222897e657656b5b9af006b50e51812dbed1bb (patch) | |
tree | d6654284a45ddbc17f083bedcf5d1055fd08f634 /pbx | |
parent | 802d09a41e12f28f64a4f6be443ecf0db251b28d (diff) |
Janitor patch to change uses of sizeof to ARRAY_LEN
(closes issue #13054)
Reported by: pabelanger
Patches:
ARRAY_LEN.patch2 uploaded by pabelanger (license 224)
Tested by: seanbright
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@130129 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/dundi-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/dundi-parser.c b/pbx/dundi-parser.c index b37c6905f..50c45e08d 100644 --- a/pbx/dundi-parser.c +++ b/pbx/dundi-parser.c @@ -181,7 +181,7 @@ static void dump_cause(char *output, int maxlen, void *value, int len) memcpy(tmp2, cause->desc, datalen); tmp2[datalen] = '\0'; - if (causecode < sizeof(causes) / sizeof(causes[0])) { + if (causecode < ARRAY_LEN(causes)) { if (ast_strlen_zero(tmp2)) snprintf(output, maxlen, "%s", causes[causecode]); else |