Change in osmo-mgw[master]: mgcp_trunk: use talloc_zero_array instead of _talloc_zero_array

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/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Jul 16 11:57:48 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/19174 )

Change subject: mgcp_trunk: use talloc_zero_array instead of _talloc_zero_array
......................................................................

mgcp_trunk: use talloc_zero_array instead of _talloc_zero_array

_talloc_zero_array is not supposed to be called by the API user. Lets
use talloc_zero_array instead.

Related: OS#2659
Change-Id: I27549585016a7998e9233c52f6d86429fc75f509
---
M src/libosmo-mgcp/mgcp_trunk.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  neels: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/libosmo-mgcp/mgcp_trunk.c b/src/libosmo-mgcp/mgcp_trunk.c
index 55a8953..0d7b385 100644
--- a/src/libosmo-mgcp/mgcp_trunk.c
+++ b/src/libosmo-mgcp/mgcp_trunk.c
@@ -101,8 +101,8 @@
 	OSMO_ASSERT(number_endpoints < 65534);
 
 	/* allocate pointer array for the endpoints */
-	trunk->endpoints = _talloc_zero_array(trunk->cfg,
-					      sizeof(struct mgcp_endpoint *), number_endpoints, "endpoints");
+	trunk->endpoints = talloc_zero_array(trunk->cfg, struct mgcp_endpoint*,
+					     number_endpoints);
 	if (!trunk->endpoints)
 		return -1;
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/19174
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I27549585016a7998e9233c52f6d86429fc75f509
Gerrit-Change-Number: 19174
Gerrit-PatchSet: 4
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200716/bab76149/attachment.htm>


More information about the gerrit-log mailing list