<p></p>
<p dir="auto">They are not necessary.<br>
In fact, I needed const only in <code class="notranslate">init_dst_from_rcv</code> for an internal module, but, with the occasion, I added more const for consistency - including existing code like <code class="notranslate">su_cmp</code> and <code class="notranslate">su_getport</code>.<br>
So, apart from consistency and style, they are neither useful for the community, I guess.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/3120#issuecomment-1132815693">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZL2DCGGMJHPOZ654JDVK544PANCNFSM5WPA2VNA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZNIPK76T2EUEUGFSRTVK544PA5CNFSM5WPA2VNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIOCWKTI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/pull/3120/c1132815693</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/3120#issuecomment-1132815693",
"url": "https://github.com/kamailio/kamailio/pull/3120#issuecomment-1132815693",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>