<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13813">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">constify map_codec_to_pt() ptmap arg<br><br>Change-Id: I030843d2d692b7a73cca8f427df070d2806ab695<br>---<br>M include/osmocom/mgcp_client/mgcp_client.h<br>M src/libosmo-mgcp-client/mgcp_client.c<br>2 files changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/13/13813/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/mgcp_client/mgcp_client.h b/include/osmocom/mgcp_client/mgcp_client.h</span><br><span>index ac3e2b1..9b57f10 100644</span><br><span>--- a/include/osmocom/mgcp_client/mgcp_client.h</span><br><span>+++ b/include/osmocom/mgcp_client/mgcp_client.h</span><br><span>@@ -154,7 +154,7 @@</span><br><span> }</span><br><span> </span><br><span> enum mgcp_codecs map_str_to_codec(const char *str);</span><br><span style="color: hsl(0, 100%, 40%);">-unsigned int map_codec_to_pt(struct ptmap *ptmap, unsigned int ptmap_len,</span><br><span style="color: hsl(120, 100%, 40%);">+unsigned int map_codec_to_pt(const struct ptmap *ptmap, unsigned int ptmap_len,</span><br><span>                            enum mgcp_codecs codec);</span><br><span> enum mgcp_codecs map_pt_to_codec(struct ptmap *ptmap, unsigned int ptmap_len,</span><br><span>                                unsigned int pt);</span><br><span>diff --git a/src/libosmo-mgcp-client/mgcp_client.c b/src/libosmo-mgcp-client/mgcp_client.c</span><br><span>index 2dcab62..c28f5d2 100644</span><br><span>--- a/src/libosmo-mgcp-client/mgcp_client.c</span><br><span>+++ b/src/libosmo-mgcp-client/mgcp_client.c</span><br><span>@@ -93,7 +93,7 @@</span><br><span> }</span><br><span> </span><br><span> /* Check the ptmap for illegal mappings */</span><br><span style="color: hsl(0, 100%, 40%);">-static int check_ptmap(struct ptmap *ptmap)</span><br><span style="color: hsl(120, 100%, 40%);">+static int check_ptmap(const struct ptmap *ptmap)</span><br><span> {</span><br><span>    /* Check if there are mappings that leave the IANA assigned dynamic</span><br><span>   * payload type range. Under normal conditions such mappings should</span><br><span>@@ -122,7 +122,7 @@</span><br><span>  *  \ptmap[in] ptmap_len length of the payload type map.</span><br><span>  *  \ptmap[in] codec the codec for which the payload type should be looked up.</span><br><span>  *  \returns assigned payload type */</span><br><span style="color: hsl(0, 100%, 40%);">-unsigned int map_codec_to_pt(struct ptmap *ptmap, unsigned int ptmap_len,</span><br><span style="color: hsl(120, 100%, 40%);">+unsigned int map_codec_to_pt(const struct ptmap *ptmap, unsigned int ptmap_len,</span><br><span>                        enum mgcp_codecs codec)</span><br><span> {</span><br><span>    unsigned int i;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13813">change 13813</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/13813"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I030843d2d692b7a73cca8f427df070d2806ab695 </div>
<div style="display:none"> Gerrit-Change-Number: 13813 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>