diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-10-30 10:41:08 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-10-31 10:04:19 -0400 |
| commit | 1cb6b71b4059b5fba67f78aebdbd7b4c6d8547df (patch) | |
| tree | 95a5fcc94d74c637b9454cab0bdb0a68575a4168 /tests/lib | |
| parent | 7ebda3892c446154e10dc13ea488e4e2ebd40d21 (diff) | |
lib, tests: Remove in6addr_cmp function from the system
This function should just be memcmp.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/lib')
| -rw-r--r-- | tests/lib/test_frrlua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/test_frrlua.c b/tests/lib/test_frrlua.c index 4aa8c8a8c3..9a1c3eaab6 100644 --- a/tests/lib/test_frrlua.c +++ b/tests/lib/test_frrlua.c @@ -90,7 +90,7 @@ static void test_encode_decode(void) lua_pushin6addr(L, &in6addr_a); lua_decode_in6addr(L, -1, &in6addr_a); - assert(in6addr_cmp(&in6addr_a, &in6addr_b) == 0); + assert(memcmp(&in6addr_a, &in6addr_b, sizeof(struct in6_addr)) == 0); assert(lua_gettop(L) == 0); union sockunion su_a, su_b; |
