mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Improve documentation for our TO_*_CONN() cast functions.
Preliminary work for #40046.
This commit is contained in:
@@ -220,8 +220,12 @@ static smartlist_t *outgoing_addrs = NULL;
|
||||
|
||||
/**************************************************************/
|
||||
|
||||
/** Convert a connection_t* to an listener_connection_t*; assert if the cast
|
||||
* is invalid. */
|
||||
/**
|
||||
* Cast a `connection_t *` to a `listener_connection_t *`.
|
||||
*
|
||||
* Exit with an assertion failure if the input is not a
|
||||
* `listener_connection_t`.
|
||||
**/
|
||||
listener_connection_t *
|
||||
TO_LISTENER_CONN(connection_t *c)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user