diff options
-rw-r--r-- | lib/libtle_udp/event.c | 2 | ||||
-rw-r--r-- | test/gtest/test_tle_udp_event.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtle_udp/event.c b/lib/libtle_udp/event.c index 7e340e8..66c5a3b 100644 --- a/lib/libtle_udp/event.c +++ b/lib/libtle_udp/event.c @@ -79,7 +79,7 @@ tle_event_alloc(struct tle_evq *evq, const void *data) evq->nb_free--; h->data = data; } else - rte_errno = -ENOMEM; + rte_errno = ENOMEM; rte_spinlock_unlock(&evq->lock); return h; } diff --git a/test/gtest/test_tle_udp_event.cpp b/test/gtest/test_tle_udp_event.cpp index 6d5c548..c7c25a0 100644 --- a/test/gtest/test_tle_udp_event.cpp +++ b/test/gtest/test_tle_udp_event.cpp @@ -78,7 +78,7 @@ TEST_F(udp_event, udp_event_alloc_free_max_reached) last_event = tle_event_alloc(evq, (void *) &fake_data); ASSERT_EQ(last_event, (struct tle_event *) NULL); - ASSERT_EQ(rte_errno, -ENOMEM); + ASSERT_EQ(rte_errno, ENOMEM); for (i = 1; i <= max_events; i++) { tle_event_free(event); |