aboutsummaryrefslogtreecommitdiffstats
path: root/tests/sockaddr_str/sockaddr_str_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sockaddr_str/sockaddr_str_test.c')
-rw-r--r--tests/sockaddr_str/sockaddr_str_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/sockaddr_str/sockaddr_str_test.c b/tests/sockaddr_str/sockaddr_str_test.c
index 7e015ce7..64a61043 100644
--- a/tests/sockaddr_str/sockaddr_str_test.c
+++ b/tests/sockaddr_str/sockaddr_str_test.c
@@ -165,14 +165,14 @@ void sockaddr_str_test_conversions()
{
uint32_t a = 0;
- rc = osmo_sockaddr_str_to_32n(x, &a);
- printf(" osmo_sockaddr_str_to_32n() %s uint8_t[4]=[ %s]\n", rc_name(rc),
+ rc = osmo_sockaddr_str_to_32h(x, &a);
+ printf(" osmo_sockaddr_str_to_32h() %s uint8_t[4]=[ %s]\n", rc_name(rc),
osmo_hexdump((void*)&a, sizeof(a)));
if (rc == 0) {
struct osmo_sockaddr_str back;
- rc = osmo_sockaddr_str_from_32n(&back, a, x->port);
- printf(" -> osmo_sockaddr_str_from_32n() %s ", rc_name(rc));
+ rc = osmo_sockaddr_str_from_32h(&back, a, x->port);
+ printf(" -> osmo_sockaddr_str_from_32h() %s ", rc_name(rc));
dump_oip(&back);
if (memcmp(x, &back, sizeof(back)))
printf(" DIFFERS!\n");