I inherit this piece of code:
It passes the address of a primitive-data-type parameter (&link_id) to another function. I have never seen this. Is this legal? Does it have a defined behavior?Code:struct LINK *link_id_search(int link_id) { struct LINK *link; link = (LINK *) splaySearch(daemon_body.links, &link_id); return link; }
The type of the 2nd parameter of splaySearch() is void *.