mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user