examples/testcase: fix inet_ntoa tc
authorJunhwan Park <junhwan.park@samsung.com>
Fri, 12 May 2017 14:34:43 +0000 (23:34 +0900)
committerJunhwan Park <junhwan.park@samsung.com>
Tue, 16 May 2017 12:38:35 +0000 (21:38 +0900)
The return value of the inet_ntoa function is a pointer variable. To fix
the build error, I changed it to a pointer variable.

Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
apps/examples/testcase/le_tc/network/tc_net_inet.c

index 1443c51..b916ef3 100644 (file)
@@ -92,7 +92,7 @@ static void tc_net_inet_ntoa_p(void)
        addr_inet.sin_addr.s_addr = 0x6601a8c0;
        ret = inet_ntoa(addr_inet.sin_addr);
 
-       TC_ASSERT_NEQ("inet", ret, -1);
+       TC_ASSERT_NEQ("inet", *ret, -1);
        TC_SUCCESS_RESULT();
 
 }