Use ARRAY_SIZE where Coccinelle wasn't able to do it

This commit is contained in:
Felipe Oliveira Carvalho
2014-12-13 11:11:49 -03:00
parent 3c857900fe
commit 8aeb2e37ee
6 changed files with 16 additions and 18 deletions

View File

@@ -2168,7 +2168,7 @@ static void usage(void)
for (i = 0;; ++i) {
mch_msg(_(" vim [arguments] "));
mch_msg(_(use[i]));
if (i == (sizeof(use) / sizeof(char_u *)) - 1)
if (i == ARRAY_SIZE(use) - 1)
break;
mch_msg(_("\n or:"));
}