<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Patch Set 2:</p><p style="white-space: pre-wrap; word-wrap: break-word;">Would be cleaner to change the printf to use PRIu64 instead of %llu rather than cast, but you'll need to test against older versions of the mysqlclient library to confirm.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Updated.</p><p style="white-space: pre-wrap; word-wrap: break-word;">The intention is clearly for this to be a 64-bit int, and the headers define my_ulonglong as uint64_t, as such PRIu64 is the correct move.</p><p style="white-space: pre-wrap; word-wrap: break-word;">As for older libraries ... unfortunately I don't have at hand any more.  From the mysql documentation (https://dev.mysql.com/doc/refman/8.0/en/c-api-data-structures.html):</p><p style="white-space: pre-wrap; word-wrap: break-word;">A type used for 64-bit unsigned integers. The my_ulonglong type was used before MySQL 8.0.18. As of MySQL 8.0.18, use the uint64_t C type instead.</p><p style="white-space: pre-wrap; word-wrap: break-word;">So I do trust that this should be in order.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13816">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13816">change 13816</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/13816"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2af4d419a37c1a7eeee750cf9ae4a9a2b3a37fd3 </div>
<div style="display:none"> Gerrit-Change-Number: 13816 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-CC: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Sun, 23 Feb 2020 09:07:36 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>