[Asterisk-code-review] json.c/strings.c - Add a couple of utility functions (asterisk[master])

Sean Bright asteriskteam at digium.com
Tue Feb 19 08:59:23 CST 2019


Sean Bright has posted comments on this change. ( https://gerrit.asterisk.org/10981 )

Change subject: json.c/strings.c - Add a couple of utility functions
......................................................................


Patch Set 3:

(1 comment)

https://gerrit.asterisk.org/#/c/10981/3/main/strings.c
File main/strings.c:

https://gerrit.asterisk.org/#/c/10981/3/main/strings.c@245
PS3, Line 245: 	return str1 == str2 || !strcmp(str1, str2) ? 1 : 0;
Micro-nit: Is the ternary actually necessary? Why not just return the result of the expression?



-- 
To view, visit https://gerrit.asterisk.org/10981
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I26f0a16d61537505eb41b4b05ef2e6d67fc2541b
Gerrit-Change-Number: 10981
Gerrit-PatchSet: 3
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Friendly Automation (1000185)
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-Comment-Date: Tue, 19 Feb 2019 14:59:23 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190219/f0aa8143/attachment.html>


More information about the asterisk-code-review mailing list