Add inet_sockaddr2str() to wrap inet_ntop(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2022-12-22 15:26:01 +01:00
committed by Iker Pedrosa
parent eec5f9fccc
commit bb3a89577c
3 changed files with 83 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
#include <config.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <utmp.h>
#include <sys/types.h>
@@ -193,6 +194,9 @@ extern bool gr_append_member (struct group *grp, char *member);
/* hushed.c */
extern bool hushed (const char *username);
/* inet_sockaddr2str.c */
extern const char *inet_sockaddr2str(const struct sockaddr *sa);
/* audit_help.c */
#ifdef WITH_AUDIT
extern int audit_fd;