]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: Use ARRAY_SIZE macro
authorsimransinghal <singhalsimran0@gmail.com>
Tue, 20 Mar 2018 20:19:35 +0000 (01:49 +0530)
committersimransinghal <singhalsimran0@gmail.com>
Thu, 12 Apr 2018 08:57:46 +0000 (14:27 +0530)
commit3d8b9f2f614d45486c82801073a20b1aa2905046
tree7e6eb060a070a49f2a843c13160814878fdaa0ab
parent13f1381ae529c80764625691ed24d7aaeec63d41
common: Use ARRAY_SIZE macro

Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) to improve code readability.
Defined it in appropriate header file.

Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
src/common/entity_name.cc
src/common/entity_name.h
src/common/utf8.c
src/common/utf8.h