Signed-off-by: Maninder Singh <maninder...@samsung.com>
Reviewed-by: Akhilesh Kumar <akhiles...@samsung.com>
---
 testcases/kernel/fs/ftest/ftest02.c |    2 +-
 testcases/kernel/fs/ftest/ftest06.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/fs/ftest/ftest02.c 
b/testcases/kernel/fs/ftest/ftest02.c
index ec70d9b..f205961 100644
--- a/testcases/kernel/fs/ftest/ftest02.c
+++ b/testcases/kernel/fs/ftest/ftest02.c
@@ -384,7 +384,7 @@ struct ino_thing {
 } ino_thing[] = {
 THING(crfile), THING(unlfile), THING(fussdir), THING(sync),};
 
-#define        NTHING  (sizeof(ino_thing) / sizeof(ino_thing[0]))
+#define        NTHING  ARRAY_SIZE(ino_thing)
 
 int thing_cnt[NTHING];
 int thing_last[NTHING];
diff --git a/testcases/kernel/fs/ftest/ftest06.c 
b/testcases/kernel/fs/ftest/ftest06.c
index 780cdbc..2ca7c88 100644
--- a/testcases/kernel/fs/ftest/ftest06.c
+++ b/testcases/kernel/fs/ftest/ftest06.c
@@ -402,7 +402,7 @@ struct ino_thing {
 } ino_thing[] = {
 THING(crfile), THING(unlfile), THING(fussdir), THING(sync),};
 
-#define        NTHING  (sizeof(ino_thing) / sizeof(ino_thing[0]))
+#define        NTHING  ARRAY_SIZE(ino_thing)
 
 int thing_cnt[NTHING];
 int thing_last[NTHING];
-- 
1.7.9.5


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to