[LTP] [PATCH v7 2/7] SAFE_MACROS: Add socket(), bind(), listen(), connect() and getsockname()

Cyril Hrubis chrubis@suse.cz
Wed Oct 7 15:07:41 CEST 2015


Hi!
> +char *ltp_sock_addr(const struct sockaddr *sa, socklen_t salen);
> +#define LTP_SOCK_ADDR(sa, salen)	ltp_sock_addr(sa, salen)

Why do we define the LTP_SOCK_ADDR() as a macro?

As far as I can see it's does not add any value over calling the
function.

Also we tend to prefix LTP internal funciton with tst_ rather than ltp_
but that is minor.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list