Signed-off-by: Maninder Singh <maninder...@samsung.com>
Reviewed-by: Akhilesh Kumar <akhiles...@samsung.com>
---
 testcases/kernel/syscalls/getxattr/getxattr01.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/getxattr/getxattr01.c 
b/testcases/kernel/syscalls/getxattr/getxattr01.c
index 91d14fa..480a26f 100644
--- a/testcases/kernel/syscalls/getxattr/getxattr01.c
+++ b/testcases/kernel/syscalls/getxattr/getxattr01.c
@@ -107,7 +107,7 @@ int main(int argc, char *argv[])
        for (lc = 0; TEST_LOOPING(lc); lc++) {
                tst_count = 0;
 
-               for (i = 0; i < (sizeof(tc) / sizeof(tc[0])); i++) {
+               for (i = 0; i < ARRAY_SIZE(tc); i++) {
                        TEST(getxattr(tc[i].fname, tc[i].key, tc[i].value,
                                      tc[i].size));
 
@@ -156,7 +156,7 @@ static void setup(void)
        }
 
        /* Prepare test cases */
-       for (i = 0; i < (sizeof(tc) / sizeof(tc[0])); i++) {
+       for (i = 0; i <  ARRAY_SIZE(tc); i++) {
                tc[i].value = malloc(BUFFSIZE);
                if (tc[i].value == NULL) {
                        tst_brkm(TBROK | TERRNO, cleanup,
-- 
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