Signed-off-by: Maninder Singh <maninder...@samsung.com>
Reviewed-by: Akhilesh Kumar <akhiles...@samsung.com>
---
 testcases/kernel/syscalls/dup2/dup204.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/dup2/dup204.c 
b/testcases/kernel/syscalls/dup2/dup204.c
index 3e447d4..95f1cdf 100644
--- a/testcases/kernel/syscalls/dup2/dup204.c
+++ b/testcases/kernel/syscalls/dup2/dup204.c
@@ -125,7 +125,7 @@ void cleanup(void)
 {
        int i;
 
-       for (i = 0; i < (sizeof(fd) / sizeof(fd[0])); i++) {
+       for (i = 0; i < ARRAY_SIZE(fd); i++) {
                close(fd[i]);
                close(nfd[i]);
        }
-- 
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