<p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/25348">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/libosmocore/+/25348/2/src/vty/vty.c">File src/vty/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/libosmocore/+/25348/2/src/vty/vty.c@352">Patch Set #2, Line 352:</a> <code style="font-family:monospace,monospace">  return vty_out(vty, "%dd %dh %dm %ds", d, h, m, s);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This function is very similar to DEFUN(show_uptime.. from command.c. Can you refactor that function to use the new function? Something like this:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  DEFUN(show_uptime,<br>        show_uptime_cmd, "show uptime", SHOW_STR "Displays how long the program has been running\n")<br>  {<br>     vty_out(vty, "%s has been running for ", host.app_info->name);<br>   vty_out_uptime(vty, starttime);<br>       vty_out(vty, "%s", VTY_NEWLINE);<br>  <br>        return CMD_SUCCESS;<br>  }</pre><p style="white-space: pre-wrap; word-wrap: break-word;">Also startime is a global variable name in command.c, but gets added here as parameter to vty_out_uptime in vty.c. Maybe rename one of them?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/25348">change 25348</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/libosmocore/+/25348"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I264a3f49096b96646e0a1f5366623ac20d860793 </div>
<div style="display:none"> Gerrit-Change-Number: 25348 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 07 Sep 2021 09:12:09 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>