I'm trying to follow the code in lib/ais/plugin.c<br>In many functions the first argument "conn" is assigned to a local "async_conn" which is never modified, e.g.:<br><br>void pcmk_notify(void *conn, ais_void_ptr *msg)<br>
{<br>    const AIS_Message *ais_msg = msg;<br>    char *data = get_ais_data(ais_msg);<br>    void *async_conn = conn;<br>...<br><br>I'm not clear what this accomplishes.  Both conn and async_conn are local in scope.<br>
Both point to memory which seems to be a string with the name of the host that sourced this message.<br>The assignment does *not* copy the memory, i.e. if multiple threads change the memory the values<br>referenced within this function will change.<br>
<br>Does anyone understand the author's intent here?<br>Thanks!<br>Alan<br><br>