aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-12-23 13:35:07 +0100
committerOliver Smith <osmith@sysmocom.de>2022-12-23 13:51:28 +0100
commitf80ab768d0144658753be86cfe3a65c9a91fb901 (patch)
tree719e6fddccd1fc14434bca92c8e44fa156834139 /tests
parent5decd4971329fded1575e5a6c27efe1680843d64 (diff)
osmo_mdns_rfc_record/question_encode: remove ctx
Remove the ctx argument to both functions, as it's not used anymore. Related: OS#5821 Change-Id: I5e3dd18bf08f7aa42f49c262e13250778ea0c6a2
Diffstat (limited to 'tests')
-rw-r--r--tests/mslookup/mdns_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mslookup/mdns_test.c b/tests/mslookup/mdns_test.c
index 3e5a230..e9fc1fb 100644
--- a/tests/mslookup/mdns_test.c
+++ b/tests/mslookup/mdns_test.c
@@ -147,7 +147,7 @@ void test_enc_dec_rfc_question(void *ctx)
struct msgb *msg = msgb_alloc(4096, "dns_test");
PRINT_QST(&in, "in");
- assert(osmo_mdns_rfc_question_encode(ctx, msg, &in) == 0);
+ assert(osmo_mdns_rfc_question_encode(msg, &in) == 0);
fprintf(stderr, "encoded: %s\n", osmo_hexdump(msgb_data(msg), msgb_length(msg)));
out = osmo_mdns_rfc_question_decode(ctx, msgb_data(msg), msgb_length(msg));
assert(out);
@@ -211,7 +211,7 @@ void test_enc_dec_rfc_record(void *ctx)
size_t record_len;
PRINT_REC(&in, "in");
- assert(osmo_mdns_rfc_record_encode(ctx, msg, &in) == 0);
+ assert(osmo_mdns_rfc_record_encode(msg, &in) == 0);
fprintf(stderr, "encoded: %s\n", osmo_hexdump(msgb_data(msg), msgb_length(msg)));
out = osmo_mdns_rfc_record_decode(ctx, msgb_data(msg), msgb_length(msg), &record_len);
fprintf(stderr, "record_len: %lu\n", record_len);