<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15870">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">socket.c: build multiaddr socket API helpers only if used by public APIs<br><br>Those two functions are only used by osmo_sock_init2_multiaddr(), which<br>is only built if HAVE_LIBSCTP is defined. Avoid compiler warning about<br>unusued function helpers if osmo_sock_init2_multiaddr() is not being<br>built.<br><br>Change-Id: I52769d6b8f70af1a8bda23d60b3230a932e71fab<br>---<br>M src/socket.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/socket.c b/src/socket.c</span><br><span>index 4752881..9b1d30e 100644</span><br><span>--- a/src/socket.c</span><br><span>+++ b/src/socket.c</span><br><span>@@ -100,6 +100,7 @@</span><br><span>  return result;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef HAVE_LIBSCTP</span><br><span> /*! Retrieve an array of addrinfo with specified hints, one for each host in the hosts array.</span><br><span>  *  \param[out] addrinfo array of addrinfo pointers, will be filled by the function on success.</span><br><span>  *          Its size must be at least the one of hosts.</span><br><span>@@ -127,6 +128,7 @@</span><br><span>    }</span><br><span>    return 0;</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+#endif /* HAVE_LIBSCTP*/</span><br><span> </span><br><span> static int socket_helper(const struct addrinfo *rp, unsigned int flags)</span><br><span> {</span><br><span>@@ -150,6 +152,7 @@</span><br><span>   return sfd;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef HAVE_LIBSCTP</span><br><span> /* Fill buf with a string representation of the address set, in the form:</span><br><span>  * buf_len == 0: "()"</span><br><span>  * buf_len == 1: "hostA"</span><br><span>@@ -181,6 +184,7 @@</span><br><span> </span><br><span>    return len;</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+#endif /* HAVE_LIBSCTP */</span><br><span> </span><br><span> static int osmo_sock_init_tail(int fd, uint16_t type, unsigned int flags)</span><br><span> {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15870">change 15870</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/+/15870"/><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: I52769d6b8f70af1a8bda23d60b3230a932e71fab </div>
<div style="display:none"> Gerrit-Change-Number: 15870 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: roox <mardnh@gmx.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>