diff mbox

validation: pktio: don't use __odp_errno directly

Message ID 1424859793-17432-1-git-send-email-taras.kondratiuk@linaro.org
State New
Headers show

Commit Message

Taras Kondratiuk Feb. 25, 2015, 10:23 a.m. UTC
__odp_errno is a private variable.
odp_errno() function should be used instead.

Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
---
 test/validation/odp_pktio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/test/validation/odp_pktio.c b/test/validation/odp_pktio.c
index 3f9de3c..96a143d 100644
--- a/test/validation/odp_pktio.c
+++ b/test/validation/odp_pktio.c
@@ -522,7 +522,7 @@  static void test_odp_pktio_lookup(void)
 	CU_ASSERT(odp_pktio_lookup(iface_name[0]) == pktio);
 
 	pktio_inval = odp_pktio_open(iface_name[0], default_pkt_pool);
-	CU_ASSERT(__odp_errno == EEXIST);
+	CU_ASSERT(odp_errno() == EEXIST);
 	CU_ASSERT(pktio_inval == ODP_PKTIO_INVALID);
 
 	CU_ASSERT(odp_pktio_close(pktio) == 0);