X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/blobdiff_plain/4f3c75ac833ae611c37db7911aecd2873a20ed41..1a448682f9a56b3e33e24fc07767a07e40feaec7:/secnet.h diff --git a/secnet.h b/secnet.h index 44b180f..647c940 100644 --- a/secnet.h +++ b/secnet.h @@ -344,6 +344,11 @@ struct comm_if { comm_addr_to_string_fn *addr_to_string; }; +static inline const char *comm_addr_to_string(const struct comm_addr *ca) +{ + return ca->comm->addr_to_string(ca->comm->st, ca); +} + /* LOG interface */ #define LOG_MESSAGE_BUFLEN 1023