summaryrefslogtreecommitdiffstats
path: root/src/basic/socket-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-02-10 04:47:12 +0100
committerGitHub <noreply@github.com>2018-02-10 04:47:12 +0100
commitb8e2400586452499131ff5ab1edb60c1dfbcf92b (patch)
treedf4f30f4a403391983f9c4005049182338bc12ef /src/basic/socket-util.c
parentRevert "Periodically call sd_journal_process in journalctl" (#8147) (diff)
parentsocket-util: drop getnameinfo_pretty() (diff)
downloadsystemd-b8e2400586452499131ff5ab1edb60c1dfbcf92b.tar.xz
systemd-b8e2400586452499131ff5ab1edb60c1dfbcf92b.zip
Merge pull request #8143 from yuwata/drop-unused-func
Drop several unused functions
Diffstat (limited to 'src/basic/socket-util.c')
-rw-r--r--src/basic/socket-util.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c
index 3b93da7301..b91b093132 100644
--- a/src/basic/socket-util.c
+++ b/src/basic/socket-util.c
@@ -758,19 +758,6 @@ int socknameinfo_pretty(union sockaddr_union *sa, socklen_t salen, char **_ret)
return 0;
}
-int getnameinfo_pretty(int fd, char **ret) {
- union sockaddr_union sa;
- socklen_t salen = sizeof(sa);
-
- assert(fd >= 0);
- assert(ret);
-
- if (getsockname(fd, &sa.sa, &salen) < 0)
- return -errno;
-
- return socknameinfo_pretty(&sa, salen, ret);
-}
-
int socket_address_unlink(SocketAddress *a) {
assert(a);