summaryrefslogtreecommitdiff
path: root/main/callerid.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/callerid.c')
-rw-r--r--main/callerid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/callerid.c b/main/callerid.c
index 1e9bcad42..c8c3afcb6 100644
--- a/main/callerid.c
+++ b/main/callerid.c
@@ -1099,7 +1099,7 @@ int ast_parse_caller_presentation(const char *data)
{
int i;
- for (i = 0; i < ((sizeof(pres_types) / sizeof(pres_types[0]))); i++) {
+ for (i = 0; i < ARRAY_LEN(pres_types); i++) {
if (!strcasecmp(pres_types[i].name, data))
return pres_types[i].val;
}
@@ -1115,7 +1115,7 @@ const char *ast_describe_caller_presentation(int data)
{
int i;
- for (i = 0; i < ((sizeof(pres_types) / sizeof(pres_types[0]))); i++) {
+ for (i = 0; i < ARRAY_LEN(pres_types); i++) {
if (pres_types[i].val == data)
return pres_types[i].description;
}
@@ -1131,7 +1131,7 @@ const char *ast_named_caller_presentation(int data)
{
int i;
- for (i = 0; i < ((sizeof(pres_types) / sizeof(pres_types[0]))); i++) {
+ for (i = 0; i < ARRAY_LEN(pres_types); i++) {
if (pres_types[i].val == data)
return pres_types[i].name;
}