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: https://origsvn.digium.com/svn/asterisk/trunk@162542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2008-12-10 01:09:06 +00:00
parent 96ae957f35
commit 135bb29ba6
3 changed files with 3 additions and 11 deletions

View File

@@ -1422,7 +1422,7 @@ static const char *mbox(int id)
"Deleted",
"Urgent"
};
return (id >= 0 && id < (sizeof(msgs)/sizeof(msgs[0]))) ? msgs[id] : "Unknown";
return (id >= 0 && id < ARRAY_LEN(msgs)) ? msgs[id] : "Unknown";
}
static void free_user(struct ast_vm_user *vmu)