[Asterisk-code-review] astobj2: Eliminate usage of legacy container allocation macros. (asterisk[16])
Richard Mudgett
asteriskteam at digium.com
Fri Oct 19 16:29:05 CDT 2018
Richard Mudgett has posted comments on this change. ( https://gerrit.asterisk.org/10504 )
Change subject: astobj2: Eliminate usage of legacy container allocation macros.
......................................................................
Patch Set 2:
(5 comments)
https://gerrit.asterisk.org/#/c/10504/2/main/pbx.c
File main/pbx.c:
https://gerrit.asterisk.org/#/c/10504/2/main/pbx.c@3057
PS2, Line 3057: return ao2_container_alloc_hash(AO2_ALLOC_OPT_LOCK_NOLOCK, 0, 1, NULL, NULL, NULL);
This should be a list container since there is only one bucket.
https://gerrit.asterisk.org/#/c/10504/2/main/pickup.c
File main/pickup.c:
https://gerrit.asterisk.org/#/c/10504/2/main/pickup.c@138
PS2, Line 138: candidates = ao2_container_alloc_hash(AO2_ALLOC_OPT_LOCK_NOLOCK, 0, 1, NULL, NULL, NULL);
This should be a list container since there is only one bucket.
https://gerrit.asterisk.org/#/c/10504/2/main/sorcery.c
File main/sorcery.c:
https://gerrit.asterisk.org/#/c/10504/2/main/sorcery.c@1795
PS2, Line 1795: object = ao2_container_alloc_hash(AO2_ALLOC_OPT_LOCK_NOLOCK, 0, 1,
This should be a list container since there is only one bucket.
https://gerrit.asterisk.org/#/c/10504/2/main/sorcery.c@1845
PS2, Line 1845: objects = ao2_container_alloc_hash(AO2_ALLOC_OPT_LOCK_NOLOCK, 0, 1, NULL, NULL, NULL);
This should be a list container since there is only one bucket.
https://gerrit.asterisk.org/#/c/10504/2/main/sorcery.c@1880
PS2, Line 1880: objects = ao2_container_alloc_hash(AO2_ALLOC_OPT_LOCK_NOLOCK, 0, 1, NULL, NULL, NULL);
This should be a list container since there is only one bucket.
--
To view, visit https://gerrit.asterisk.org/10504
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-MessageType: comment
Gerrit-Change-Id: I1a26258b5bf3deb081aaeed11a0baa175c933c7a
Gerrit-Change-Number: 10504
Gerrit-PatchSet: 2
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2 (1000185)
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Fri, 19 Oct 2018 21:29:05 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181019/0f244fb6/attachment-0001.html>
More information about the asterisk-code-review
mailing list