<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/11989">View Change</a></p><p>6 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11989/2//COMMIT_MSG">Commit Message:</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/11989/2//COMMIT_MSG@7">Patch Set #2, Line 7:</a> <code style="font-family:monospace,monospace">gsupclient: add osmo_gsup_msg_enc_send() helper</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">("helper" triggers a rant from me: it is a word like "framework" or "thing". All functions except main() are helpers.)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11989/2//COMMIT_MSG@10">Patch Set #2, Line 10:</a> <code style="font-family:monospace,monospace">messages using a given abstract 'osmo_gsup_message' structure.</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">what the function does should be documented at the new function. the commit log is more about understanding why and how the change came to be.</p><p style="white-space: pre-wrap; word-wrap: break-word;">And that is exactly what is missing here. All that I can tell is that you are adding dead code??</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11989/2/src/gsupclient/gsup_client.c">File src/gsupclient/gsup_client.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/11989/2/src/gsupclient/gsup_client.c@342">Patch Set #2, Line 342:</a> <code style="font-family:monospace,monospace">/* Helper for encoding and sending GSUP messages */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">/* Encode and send a GSUP message. */</p><p style="white-space: pre-wrap; word-wrap: break-word;">Though, that part is rather obvious from the function name, while e.g. the return value is not explained.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11989/2/src/gsupclient/gsup_client.c@349">Patch Set #2, Line 349:</a> <code style="font-family:monospace,monospace">    /* Allocate GSUP message buffer */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">omit comments that merely restate the code</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11989/2/src/gsupclient/gsup_client.c@356">Patch Set #2, Line 356:</a> <code style="font-family:monospace,monospace">  /* Encode GSUP message */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">ditto</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11989/2/src/gsupclient/gsup_client.c@363">Patch Set #2, Line 363:</a> <code style="font-family:monospace,monospace">        /* Finally send */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Do you know these API docs that go like:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  set_value():             Helper to set value.<br>  osmo_gsup_encode():      Encode an OsmoGSUP.<br>  osmo_gsup_client_send(): Send an OsmoGSUP client.<br>  <br>;)</pre></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/11989">change 11989</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/11989"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I0589ff27933e9bca2bcf93b8259004935778db8f </div>
<div style="display:none"> Gerrit-Change-Number: 11989 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 06 Dec 2018 01:47:41 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>