tests/test-ranap: fix missing (void **) cast

Use the function like everywhere else in the code.

Fix for:
  tests/test-ranap.c:73:49: error: passing argument 3 of ‘aper_decode’ from incompatible pointer type [-Werror=incompati
ble-pointer-types]

Change-Id: I9d8a3ab70accc6a1401fe11a6d2ceef96d3b8c22
This commit is contained in:
Oliver Smith 2022-11-11 17:22:56 +01:00
parent 3e5261ccf8
commit d479858ef3
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ static void test_aper_causemisc(uint32_t inp, uint8_t exp_enc)
OSMO_ASSERT(rv.encoded == 8);
/* test re-decoding */
aper_decode(NULL, &asn_DEF_RANAP_Cause, &c_dec, buf, 1, 0, 0);
aper_decode(NULL, &asn_DEF_RANAP_Cause, (void **)&c_dec, buf, 1, 0, 0);
printf("Decoded Cause Misc=%ld\n", c_dec->choice.misc);
OSMO_ASSERT(c_dec->present == RANAP_Cause_PR_misc);
OSMO_ASSERT(c_dec->choice.misc == inp);