<p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/25649">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/25649/1/src/sgsn/sgsn_vty.c">File src/sgsn/sgsn_vty.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/25649/1/src/sgsn/sgsn_vty.c@164">Patch Set #1, Line 164:</a> <code style="font-family:monospace,monospace">                        strcpy(str, "IPv4 ");</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I assume what you don't want here are the unused calls to strcpy/inet_ntop. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Hmm I thought I already explained that in a previous comment but I don't see it here, maybe I erased it without noticing. Anyway, here it is:</p><p style="white-space: pre-wrap; word-wrap: break-word;">I don't want either to spend twice the amount of static memory for no good reason. Hence why the buffer can be shared, there's no real need to have 2 buffers.</p><p style="white-space: pre-wrap; word-wrap: break-word;">So basically you leave the "str" buffer as it was before, and you simply use "str" everywhere.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/25649">change 25649</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/c/osmo-sgsn/+/25649"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sgsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Id36b7520677e4a0af40d05dc503b26d1b0b74a26 </div>
<div style="display:none"> Gerrit-Change-Number: 25649 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: keith <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 30 Sep 2021 18:07:28 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Comment-In-Reply-To: keith <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>