Change in libosmo-abis[master]: lapd: Use lapd_dl_init2 instead of deprecated lapd_dl_init

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Wed Jul 15 13:42:41 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-abis/+/19281 )


Change subject: lapd: Use lapd_dl_init2 instead of deprecated lapd_dl_init
......................................................................

lapd: Use lapd_dl_init2 instead of deprecated lapd_dl_init

Change-Id: If25957d10bf9e32d2fe601111a9c1311aee21094
---
M TODO-RELEASE
M src/input/lapd.c
2 files changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/81/19281/1

diff --git a/TODO-RELEASE b/TODO-RELEASE
index aa278ec..bf3ef84 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -11,3 +11,4 @@
 libosmo-trau	API change	add new function osmo_rtp_socket_set_dscp()
 libosmo-abis	API change	major: add parameter to struct lapd_instance
 libosmo-abis	Field added	struct e1inp_line "use_count". REMINDER: Upon LIBVERSION c bump, take the chance to drop struct e1inp_line "refcnt" field.
+libosmo-abis	libosmogsm dep Use of lapd_dl_init2() requires libosmocore > 1.3.0 (not yet released, 00b2faf8217338d4d7d1f4d27331af3151447350)
diff --git a/src/input/lapd.c b/src/input/lapd.c
index 5359a64..d8c67e4 100644
--- a/src/input/lapd.c
+++ b/src/input/lapd.c
@@ -259,8 +259,7 @@
 	LOGP(DLLAPD, LOGL_NOTICE, "%s: k=%d N200=%d N201=%d T200=%d.%d T203=%d.%d\n",
 		name, k, profile->n200, profile->n201, profile->t200_sec,
 		profile->t200_usec, profile->t203_sec, profile->t203_usec);
-	lapd_dl_init(dl, k, 128, profile->n201);
-	lapd_dl_set_name(dl, name);
+	lapd_dl_init2(dl, k, 128, profile->n201, name);
 	dl->use_sabme = 1; /* use SABME instead of SABM (GSM) */
 	dl->send_ph_data_req = send_ph_data_req;
 	dl->send_dlsap = send_dlsap;

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/19281
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: If25957d10bf9e32d2fe601111a9c1311aee21094
Gerrit-Change-Number: 19281
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200715/2dbb1120/attachment.htm>


More information about the gerrit-log mailing list