aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-10 01:09:06 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-10 01:09:06 +0000
commit4e8098d130979d8de5717e770934a213eea84473 (patch)
tree2a5a809fe7cd10b1dffbd211e974403dbb1b4f85 /channels
parent4fbfb9c338bfc1e8c56a6ed21dc3d4428a2f68bb (diff)
Finish conversion to using ARRAY_LEN and remove it as a janitor project.
(closes issue #14032) Reported by: bkruse Patches: 14032.patch uploaded by bkruse (license 132) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@162542 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/iax2-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c
index b9af6fd6e..224a924ce 100644
--- a/channels/iax2-parser.c
+++ b/channels/iax2-parser.c
@@ -533,14 +533,14 @@ void iax_showframe(struct iax_frame *f, struct ast_iax2_full_hdr *fhi, int rx, s
sprintf(subclass2, "%c", fh->csub);
subclass = subclass2;
} else if (fh->type == AST_FRAME_IAX) {
- if (fh->csub >= (int)sizeof(iaxs)/(int)sizeof(iaxs[0])) {
+ if (fh->csub >= ARRAY_LEN(iaxs)) {
snprintf(subclass2, sizeof(subclass2), "(%d?)", fh->csub);
subclass = subclass2;
} else {
subclass = iaxs[(int)fh->csub];
}
} else if (fh->type == AST_FRAME_CONTROL) {
- if (fh->csub >= (int)sizeof(cmds)/(int)sizeof(cmds[0])) {
+ if (fh->csub >= ARRAY_LEN(cmds)) {
snprintf(subclass2, sizeof(subclass2), "(%d?)", fh->csub);
subclass = subclass2;
} else {