Review at  https://gerrit.osmocom.org/7889

gsm0808_test: silence deprecation: use gsm0808_create_layer3_2()

Change-Id: Ia0afecafa8862ffbe2af3c86e5552673f0935eb0
---
M tests/gsm0808/gsm0808_test.c
1 file changed, 11 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/89/7889/1

diff --git a/tests/gsm0808/gsm0808_test.c b/tests/gsm0808/gsm0808_test.c
index e111fe6..ae138be 100644
--- a/tests/gsm0808/gsm0808_test.c
+++ b/tests/gsm0808/gsm0808_test.c
@@ -71,13 +71,23 @@
                0x00, 0x0e, 0x57, 0x05, 0x08, 0x00, 0x77, 0x62,
                0x83, 0x33, 0x66, 0x44, 0x88, 0x17, 0x01, 0x23 };
        struct msgb *msg, *in_msg;
+       struct osmo_cell_global_id cgi = {
+               .lai = {
+                       .plmn = {
+                               .mcc = 0x2244,
+                               .mnc = 0x1122,
+                       },
+                       .lac = 0x3366,
+               },
+               .cell_identity = 0x4488,
+       };
        printf("Testing creating Layer3\n");
 
        in_msg = msgb_alloc_headroom(512, 128, "foo");
        in_msg->l3h = in_msg->data;
        msgb_v_put(in_msg, 0x23);
 
-       msg = gsm0808_create_layer3(in_msg, 0x1122, 0x2244, 0x3366, 0x4488);
+       msg = gsm0808_create_layer3_2(in_msg, &cgi, NULL);
        VERIFY(msg, res, ARRAY_SIZE(res));
        msgb_free(msg);
        msgb_free(in_msg);

-- 
To view, visit https://gerrit.osmocom.org/7889
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0afecafa8862ffbe2af3c86e5552673f0935eb0
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <[email protected]>

Reply via email to