commit | 02f9876ebb5e9cd31013c62b8839508b2dc152f0 | [log] [tgz] |
---|---|---|
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | Sun Oct 01 15:30:46 2017 -0400 |
committer | Tyler Hicks <tyhicks@canonical.com> | Mon Nov 06 18:23:59 2017 +0000 |
tree | daba01fc309974a4da5457b2b5d382861a3a9594 | |
parent | 5032f360dd31e6cf59aadad0478df1244bfd30f8 [diff] |
ecryptfs: use ARRAY_SIZE Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> Signed-off-by: Tyler Hicks <tyhicks@canonical.com>