<p>Jaco Kroon has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19057">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tcptls: improve type-safety of periodic_fn callback argument.<br><br>Since the argument is always of type struct ast_tcptls_session_args*,<br>use that type rather than void*.<br><br>Change-Id: I2279b8d7365eb7f9ae513caaf90333fffc53863e<br>Signed-off-by: Jaco Kroon <jaco@uls.co.za><br>---<br>M include/asterisk/tcptls.h<br>M main/manager.c<br>2 files changed, 15 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/57/19057/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/asterisk/tcptls.h b/include/asterisk/tcptls.h</span><br><span>index 1b1b56c..b417209 100644</span><br><span>--- a/include/asterisk/tcptls.h</span><br><span>+++ b/include/asterisk/tcptls.h</span><br><span>@@ -138,7 +138,7 @@</span><br><span>     /*! Server accept_fn thread ID used for external shutdown requests. */</span><br><span>       pthread_t master;</span><br><span>    void *(*accept_fn)(void *); /*!< the function in charge of doing the accept */</span><br><span style="color: hsl(0, 100%, 40%);">-       void (*periodic_fn)(void *);/*!< something we may want to run before after select on the accept socket */</span><br><span style="color: hsl(120, 100%, 40%);">+  void (*periodic_fn)(struct ast_tcptls_session_args *);/*!< something we may want to run before after select on the accept socket */</span><br><span>       void *(*worker_fn)(void *); /*!< the function in charge of doing the actual work */</span><br><span>       const char *name;</span><br><span>    struct ast_tls_config *old_tls_cfg; /*!< copy of the SSL configuration to determine whether changes have been made */</span><br><span>diff --git a/main/manager.c b/main/manager.c</span><br><span>index eb0459e..d03b46c 100644</span><br><span>--- a/main/manager.c</span><br><span>+++ b/main/manager.c</span><br><span>@@ -8635,7 +8635,7 @@</span><br><span> /*! \brief cleanup code called at each iteration of server_root,</span><br><span>  * guaranteed to happen every 5 seconds at most</span><br><span>  */</span><br><span style="color: hsl(0, 100%, 40%);">-static void purge_old_stuff(void *data)</span><br><span style="color: hsl(120, 100%, 40%);">+static void purge_old_stuff(struct ast_tcptls_session_args *data)</span><br><span> {</span><br><span>   purge_sessions(1);</span><br><span>   purge_events();</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19057">change 19057</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.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.asterisk.org/c/asterisk/+/19057"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2279b8d7365eb7f9ae513caaf90333fffc53863e </div>
<div style="display:none"> Gerrit-Change-Number: 19057 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>