[Asterisk-code-review] time: add support for time64 libcs (asterisk[master])

Philip Prindeville asteriskteam at digium.com
Fri Feb 25 17:15:49 CST 2022


Attention is currently required from: Joshua Colp, George Joseph, Sebastian Kemper.
Philip Prindeville has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/16621 )

Change subject: time: add support for time64 libcs
......................................................................


Patch Set 4:

(2 comments)

File res/res_calendar_caldav.c:

https://gerrit.asterisk.org/c/asterisk/+/16621/comment/4952cf1a_c4da12dc 
PS4, Line 408: 			snprintf(tmp, sizeof(tmp), "%" TIME_T_FMT, TIME_T_CAST(event->start));
> Going your route would add complexity in my opinion.
And yet my changes are lighter touch... how is that more complexity?


File res/res_pjsip_registrar.c:

https://gerrit.asterisk.org/c/asterisk/+/16621/comment/beef2cf9_552593ad 
PS4, Line 1376: 		sprintf(time, "%" TIME_T_FMT, TIME_T_CAST(ast_tvnow().tv_sec));
As long as you're touching this line, you might as well use snprintf().



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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ic8d61b26033f5c486b917e738c9608b0923a844e
Gerrit-Change-Number: 16621
Gerrit-PatchSet: 4
Gerrit-Owner: Sebastian Kemper <sebastian_ml at gmx.net>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Philip Prindeville <philipp at redfish-solutions.com>
Gerrit-Reviewer: Sean Bright <sean at seanbright.com>
Gerrit-CC: George Joseph <gjoseph at digium.com>
Gerrit-CC: Kevin Harwell <kharwell at digium.com>
Gerrit-Attention: Joshua Colp <jcolp at sangoma.com>
Gerrit-Attention: George Joseph <gjoseph at digium.com>
Gerrit-Attention: Sebastian Kemper <sebastian_ml at gmx.net>
Gerrit-Comment-Date: Fri, 25 Feb 2022 23:15:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Sebastian Kemper <sebastian_ml at gmx.net>
Comment-In-Reply-To: Philip Prindeville <philipp at redfish-solutions.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220225/5904eebe/attachment.html>


More information about the asterisk-code-review mailing list